| /netbsd/src/tests/ipf/expected/ |
| D | f13 | 2 bad-packet 5 bad-packet 8 bad-packet 10 bad-packet 22 bad-packet 25 bad-packet 28 bad-packet 30 bad-packet 42 bad-packet 45 bad-packet [all …]
|
| D | f12 | 4 bad-packet 7 bad-packet 14 bad-packet 17 bad-packet 24 bad-packet 27 bad-packet 34 bad-packet 37 bad-packet 44 bad-packet 47 bad-packet [all …]
|
| /netbsd/src/external/bsd/tcpdump/dist/tests/ |
| D | eapon1-nosmb.out | 14 14 2004-03-23 15:17:35.622870 EAP packet (0) v1, len 5 18 18 2004-03-23 15:17:36.158698 EAP packet (0) v1, len 5 19 19 2004-03-23 15:17:37.766046 EAP packet (0) v1, len 45 20 20 2004-03-23 15:17:37.790625 EAP packet (0) v1, len 20 21 21 2004-03-23 15:17:37.830669 EAP packet (0) v1, len 76 22 22 2004-03-23 15:17:37.848577 EAP packet (0) v1, len 80 23 23 2004-03-23 15:17:38.661939 EAP packet (0) v1, len 28 24 24 2004-03-23 15:17:38.685352 EAP packet (0) v1, len 4 31 31 2004-03-23 15:18:08.696826 EAP packet (0) v1, len 5 32 32 2004-03-23 15:18:08.713116 EAP packet (0) v1, len 45 [all …]
|
| D | eapon1.out | 14 14 2004-03-23 15:17:35.622870 EAP packet (0) v1, len 5 18 18 2004-03-23 15:17:36.158698 EAP packet (0) v1, len 5 19 19 2004-03-23 15:17:37.766046 EAP packet (0) v1, len 45 20 20 2004-03-23 15:17:37.790625 EAP packet (0) v1, len 20 21 21 2004-03-23 15:17:37.830669 EAP packet (0) v1, len 76 22 22 2004-03-23 15:17:37.848577 EAP packet (0) v1, len 80 23 23 2004-03-23 15:17:38.661939 EAP packet (0) v1, len 28 24 24 2004-03-23 15:17:38.685352 EAP packet (0) v1, len 4 31 31 2004-03-23 15:18:08.696826 EAP packet (0) v1, len 5 32 32 2004-03-23 15:18:08.713116 EAP packet (0) v1, len 45 [all …]
|
| D | eapon1-v-nosmb.out | 32 14 2004-03-23 15:17:35.622870 EAP packet (0) v1, len 5, Request (1), id 1, len 5 65 18 2004-03-23 15:17:36.158698 EAP packet (0) v1, len 5, Request (1), id 2, len 5 67 19 2004-03-23 15:17:37.766046 EAP packet (0) v1, len 45, Response (2), id 2, len 45 69 20 2004-03-23 15:17:37.790625 EAP packet (0) v1, len 20, Request (1), id 16, len 20 71 21 2004-03-23 15:17:37.830669 EAP packet (0) v1, len 76, Response (2), id 16, len 76 73 22 2004-03-23 15:17:37.848577 EAP packet (0) v1, len 80, Request (1), id 17, len 80 75 23 2004-03-23 15:17:38.661939 EAP packet (0) v1, len 28, Response (2), id 17, len 28 77 24 2004-03-23 15:17:38.685352 EAP packet (0) v1, len 4, Success (3), id 0, len 4 126 31 2004-03-23 15:18:08.696826 EAP packet (0) v1, len 5, Request (1), id 3, len 5 128 32 2004-03-23 15:18:08.713116 EAP packet (0) v1, len 45, Response (2), id 3, len 45 [all …]
|
| /netbsd/src/usr.bin/rump_dhcpclient/ |
| D | net.c | 400 make_udp_packet(uint8_t **packet, const uint8_t *data, size_t length, in make_udp_packet() argument 442 *packet = (uint8_t *)udpp; in make_udp_packet() 449 struct udp_dhcp_packet packet; in get_udp_data() local 451 memcpy(&packet, udp, sizeof(packet)); in get_udp_data() 453 return ntohs(packet.ip.ip_len) - in get_udp_data() 454 sizeof(packet.ip) - in get_udp_data() 455 sizeof(packet.udp); in get_udp_data() 461 struct udp_dhcp_packet packet; in valid_udp_packet() local 464 if (data_len < sizeof(packet.ip)) { in valid_udp_packet() 470 memcpy(&packet, data, MIN(data_len, sizeof(packet))); in valid_udp_packet() [all …]
|
| D | bpf.c | 165 struct bpf_hdr packet; in get_raw_packet() local 179 else if ((size_t)bytes < sizeof(packet)) in get_raw_packet() 185 memcpy(&packet, iface->buffer + iface->buffer_pos, in get_raw_packet() 186 sizeof(packet)); in get_raw_packet() 187 if (packet.bh_caplen != packet.bh_datalen) in get_raw_packet() 189 if (iface->buffer_pos + packet.bh_caplen + packet.bh_hdrlen > in get_raw_packet() 192 payload = iface->buffer + packet.bh_hdrlen + ETHER_HDR_LEN; in get_raw_packet() 193 bytes = packet.bh_caplen - ETHER_HDR_LEN; in get_raw_packet() 198 iface->buffer_pos += BPF_WORDALIGN(packet.bh_hdrlen + in get_raw_packet() 199 packet.bh_caplen); in get_raw_packet()
|
| /netbsd/src/sys/dev/pckbport/ |
| D | synaptics.c | 195 static struct synaptics_packet packet; variable 711 memset(&packet, 0, sizeof(packet)); in pms_synaptics_enable() 1214 ew_mode = psc->packet[5] >> 4; in pms_synaptics_get_fingers() 1226 fingers = psc->packet[1] & 0x0f; in pms_synaptics_get_fingers() 1278 memcpy(&nsp, &packet, sizeof(packet)); in pms_synaptics_parse() 1281 nsp.sp_w = ((psc->packet[0] & 0x30) >> 2) in pms_synaptics_parse() 1282 + ((psc->packet[0] & 0x04) >> 1) in pms_synaptics_parse() 1283 + ((psc->packet[3] & 0x04) >> 2); in pms_synaptics_parse() 1290 ew_mode = psc->packet[5] >> 4; in pms_synaptics_parse() 1303 nsp.sp_sx = ((psc->packet[1] & 0xfe) << 1) in pms_synaptics_parse() [all …]
|
| D | alps.c | 828 x = (int8_t)((psc->packet[2] & 0xbf) | in pms_alps_decode_trackstick_packet_v7() 829 ((psc->packet[3] & 0x10) << 2)); in pms_alps_decode_trackstick_packet_v7() 830 y = (int8_t)((psc->packet[3] & 0x07) | (psc->packet[4] & 0xb8) | in pms_alps_decode_trackstick_packet_v7() 831 ((psc->packet[3] & 0x20) << 1)); in pms_alps_decode_trackstick_packet_v7() 832 z = (int8_t)((psc->packet[5] & 0x3f) | in pms_alps_decode_trackstick_packet_v7() 833 ((psc->packet[3] & 0x80) >> 1)); in pms_alps_decode_trackstick_packet_v7() 839 left = psc->packet[1] & 0x01; in pms_alps_decode_trackstick_packet_v7() 840 middle = (psc->packet[1] & 0x04) >> 2; in pms_alps_decode_trackstick_packet_v7() 841 right = (psc->packet[1] & 0x02) >> 1; in pms_alps_decode_trackstick_packet_v7() 856 if (psc->packet[4] & 0x40) in pms_alps_decode_packetid_v7() [all …]
|
| D | elantech.c | 234 psc->packet[psc->inputstate++] = data & 0xff; in pms_elantech_input() 240 ep.ep_nfingers = (psc->packet[0] & 0xc0) >> 6; in pms_elantech_input() 242 ep.ep_buttons = psc->packet[0] & 1; /* left button */ in pms_elantech_input() 243 ep.ep_buttons |= (psc->packet[0] & 2) << 1; /* right button */ in pms_elantech_input() 252 ep.ep_x = ((int16_t)(psc->packet[1] & 0xf) << 8) | psc->packet[2]; in pms_elantech_input() 253 ep.ep_y = ((int16_t)(psc->packet[4] & 0xf) << 8) | psc->packet[5]; in pms_elantech_input() 261 psc->packet[0], psc->packet[1], psc->packet[2], in pms_elantech_input() 262 psc->packet[3], psc->packet[4], psc->packet[5]); in pms_elantech_input() 283 ep.ep_z = psc->packet[2]; in pms_elantech_input() 288 psc->packet[0], psc->packet[1], psc->packet[2], in pms_elantech_input() [all …]
|
| D | pms.c | 564 if (sc->inputstate >= sizeof(sc->packet)) in pmsinput() 567 sc->packet[sc->inputstate++] = data & 0xff; in pmsinput() 585 if (!(sc->packet[0] & 0x8)) { in pmsinput() 587 "[0x%02x], resetting\n", sc->packet[0])); in pmsinput() 597 if (sc->packet[0] == PMS_RSTDONE && sc->packet[1] == 0) { in pmsinput() 609 dz = sc->packet[3]; in pmsinput() 615 dz = sc->packet[3] & 0xf; in pmsinput() 618 if (sc->packet[3] & PMS_4BUTMASK) in pmsinput() 620 if (sc->packet[3] & PMS_5BUTMASK) in pmsinput() 635 newbuttons |= ((sc->packet[0] & PMS_LBUTMASK) ? 0x1 : 0) | in pmsinput() [all …]
|
| /netbsd/src/crypto/external/bsd/openssh/dist/ |
| D | PROTOCOL.chacha20poly1305 | 19 data passed to the MAC and in the addition of encryption of the packet 41 to encrypt the 4 byte packet length field. The second instance, 44 and authenticate the entire packet. 46 Two separate cipher instances are used here so as to keep the packet 47 lengths confidential but not create an oracle for the packet payload 48 cipher by decrypting and using the packet length prior to checking 50 length, an active attacker seeking to exploit the packet input handling 54 The AEAD is constructed as follows: for each packet, generate a Poly1305 56 using K_2, an IV consisting of the packet sequence number encoded as an 60 for encryption of the packet payload. [all …]
|
| /netbsd/src/crypto/external/bsd/netpgp/dist/ref/ |
| D | rfc1991.txt | 435 This section defines fields found in more than one packet format. 439 Purpose. The packet structure field distinguishes between different 442 Definition. A packet structure field is a byte string of length 1, 445 significant bit. As indicated below the length of the packet 461 CTB bits 5432, the "packet type bits", have values listed in the 464 0001 - public-key-encrypted packet 465 0010 - signature packet 466 0101 - secret-key certificate packet 467 0110 - public-key certificate packet 468 1000 - compressed data packet [all …]
|
| /netbsd/src/sys/arch/mac68k/dev/ |
| D | pm_direct.c | 1040 struct adbCommand packet; local 1077 packet.data[0] = 1 + pmdata.data[2]; 1078 packet.data[1] = command; 1080 packet.data[i+2] = pmdata.data[i+3]; 1081 packet.saveBuf = adbBuffer; 1082 packet.compRout = adbCompRout; 1083 packet.compData = adbCompData; 1084 packet.cmd = command; 1085 packet.unsol = 0; 1086 packet.ack_only = 1; [all …]
|
| D | adb_direct.c | 408 struct adbCommand packet; in adb_intr_cuda() local 466 memcpy(packet.data, adbInputBuffer, adbInputBuffer[0] + 1); in adb_intr_cuda() 472 packet.saveBuf = adbBuffer; in adb_intr_cuda() 473 packet.compRout = adbCompRout; in adb_intr_cuda() 474 packet.compData = adbCompData; in adb_intr_cuda() 475 packet.unsol = 0; in adb_intr_cuda() 476 packet.ack_only = 0; in adb_intr_cuda() 477 adb_pass_up(&packet); in adb_intr_cuda() 485 packet.unsol = 1; in adb_intr_cuda() 486 packet.ack_only = 0; in adb_intr_cuda() [all …]
|
| /netbsd/src/sys/arch/macppc/dev/ |
| D | pm_direct.c | 654 struct adbCommand packet; in pm_adb_op() local 692 packet.data[0] = 1 + pmdata.data[2]; in pm_adb_op() 693 packet.data[1] = command; in pm_adb_op() 695 packet.data[i+2] = pmdata.data[i+3]; in pm_adb_op() 696 packet.saveBuf = adbBuffer; in pm_adb_op() 697 packet.compRout = adbCompRout; in pm_adb_op() 698 packet.compData = adbCompData; in pm_adb_op() 699 packet.cmd = command; in pm_adb_op() 700 packet.unsol = 0; in pm_adb_op() 701 packet.ack_only = 1; in pm_adb_op() [all …]
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| D | socket_wrapper.c | 784 struct swrap_packet *packet; in swrap_packet_init() local 787 size_t nonwire_len = sizeof(packet->frame); in swrap_packet_init() 799 wire_hdr_len = sizeof(packet->ip.hdr) + sizeof(packet->ip.p.tcp); in swrap_packet_init() 805 wire_hdr_len = sizeof(packet->ip.hdr) + sizeof(packet->ip.p.udp); in swrap_packet_init() 816 icmp_hdr_len = sizeof(packet->ip.hdr) + sizeof(packet->ip.p.icmp); in swrap_packet_init() 829 packet = ret; in swrap_packet_init() 831 packet->frame.seconds = tval->tv_sec; in swrap_packet_init() 832 packet->frame.micro_seconds = tval->tv_usec; in swrap_packet_init() 833 packet->frame.recorded_length = wire_len - icmp_truncate_len; in swrap_packet_init() 834 packet->frame.full_length = wire_len - icmp_truncate_len; in swrap_packet_init() [all …]
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| D | write_message.c | 65 krb5_data packet; in krb5_write_priv_message() local 67 ret = krb5_mk_priv (context, ac, data, &packet, NULL); in krb5_write_priv_message() 70 ret = krb5_write_message(context, p_fd, &packet); in krb5_write_priv_message() 71 krb5_data_free(&packet); in krb5_write_priv_message() 82 krb5_data packet; in krb5_write_safe_message() local 83 ret = krb5_mk_safe (context, ac, data, &packet, NULL); in krb5_write_safe_message() 86 ret = krb5_write_message(context, p_fd, &packet); in krb5_write_safe_message() 87 krb5_data_free(&packet); in krb5_write_safe_message()
|
| D | read_message.c | 81 krb5_data packet; in krb5_read_priv_message() local 83 ret = krb5_read_message(context, p_fd, &packet); in krb5_read_priv_message() 86 ret = krb5_rd_priv (context, ac, &packet, data, NULL); in krb5_read_priv_message() 87 krb5_data_free(&packet); in krb5_read_priv_message() 98 krb5_data packet; in krb5_read_safe_message() local 100 ret = krb5_read_message(context, p_fd, &packet); in krb5_read_safe_message() 103 ret = krb5_rd_safe (context, ac, &packet, data, NULL); in krb5_read_safe_message() 104 krb5_data_free(&packet); in krb5_read_safe_message()
|
| /netbsd/src/sys/arch/hpcmips/dev/ |
| D | optpoint.c | 63 char packet[4]; member 159 memset(sc->packet, 0, 3); in optpoint_intr() 170 sc->packet[sc->index++] = data; in optpoint_intr() 172 u_int newbuttons = ((sc->packet[1] & LBUTMASK) ? 0x1 : 0) in optpoint_intr() 173 | ((sc->packet[1] & RBUTMASK) ? 0x2 : 0); in optpoint_intr() 174 int dx = sc->packet[2]; in optpoint_intr() 175 int dy = sc->packet[0]; in optpoint_intr() 188 memset(sc->packet, 0, 3); in optpoint_intr() 210 sc->packet[0] = 0xf5; /* Disable */ in optpoint_enable() 211 sc->packet[1] = 0xf2; /* Set Stream Mode */ in optpoint_enable() [all …]
|
| /netbsd/src/sys/arch/sgimips/dev/ |
| D | zs_ms.c | 78 int8_t packet[5]; member 237 sc->packet[ZSMS_PACKET_SYNC] = c; in zsms_softint() 243 sc->packet[ZSMS_PACKET_X1] = c; in zsms_softint() 248 sc->packet[ZSMS_PACKET_Y1] = c; in zsms_softint() 253 sc->packet[ZSMS_PACKET_X2] = c; in zsms_softint() 258 sc->packet[ZSMS_PACKET_Y2] = c; in zsms_softint() 281 btns = (uint8_t)sc->packet[ZSMS_PACKET_SYNC] & ZSMS_SYNC_BTN_MASK; in zsms_wsmouse_input() 290 x = (int)sc->packet[ZSMS_PACKET_X1] + (int)sc->packet[ZSMS_PACKET_X2]; in zsms_wsmouse_input() 291 y = (int)sc->packet[ZSMS_PACKET_Y1] + (int)sc->packet[ZSMS_PACKET_Y2]; in zsms_wsmouse_input()
|
| /netbsd/src/external/bsd/libpcap/dist/msdos/ |
| D | pkt_rx0.asm | 49 destinAdr db 6 dup (0) ; packet destination address 50 sourceAdr db 6 dup (0) ; packet source address 51 protocol dw 0 ; packet protocol number 57 _pktDrop dw 0,0 ; packet drop counter 107 ;; NOTE. rxInOfs is updated after the packet has been copied 108 ;; to ES:DI (= DS:SI on 2nd call) by the packet driver 114 ; This routine gets called by the packet driver twice: 115 ; 1st time (AX=0) it requests an address where to put the packet 117 ; 2nd time (AX=1) the packet has been copied to this location (DS:SI) 119 ; CX has # of bytes in packet on both call. They should be equal. [all …]
|
| D | pkt_rx1.s | 20 .destinAdr resb 6 ; packet destination address 21 .sourceAdr resb 6 ; packet source address 22 .protocol resw 1 ; packet protocol number 32 _pktDrop dw 0,0 ; packet drop counter 70 ; This routine gets called by the packet driver twice: 71 ; 1st time (AX=0) it requests an address where to put the packet 73 ; 2nd time (AX=1) the packet has been copied to this location (DS:SI) 75 ; CX has # of bytes in packet on both call. They should be equal. 97 SHOW_RX ; show that a packet is received 121 @dump: add word [_pktDrop+0], 1 ; discard the packet on 1st call
|
| /netbsd/src/tests/net/net/ |
| D | t_ip_reass.c | 106 struct lopacket *packet; in alloc_lopacket() local 109 pktlen = sizeof(*packet) + payloadlen; in alloc_lopacket() 110 packet = malloc(pktlen); in alloc_lopacket() 111 ATF_REQUIRE(packet != NULL); in alloc_lopacket() 113 memset(packet, 0, pktlen); in alloc_lopacket() 114 packet->family = AF_INET; in alloc_lopacket() 116 ip = &packet->hdr; in alloc_lopacket() 130 return (packet); in alloc_lopacket() 134 free_lopacket(struct lopacket *packet) in free_lopacket() argument 137 free(packet); in free_lopacket() [all …]
|
| /netbsd/src/external/bsd/ppp/dist/pppd/ |
| D | demand.c | 70 struct packet { struct 72 struct packet *next; argument 76 struct packet *pend_q; argument 77 struct packet *pend_qtail; 145 struct packet *pkt, *nextpkt; in demand_discard() 277 struct packet *pkt; in loop_frame() 287 pkt = (struct packet *) malloc(sizeof(struct packet) + len); in loop_frame() 308 struct packet *pkt, *prev, *nextpkt; in demand_rexmit()
|