| /NextBSD/contrib/ldns/ |
| HD | packet.c | 39 ldns_pkt_id(const ldns_pkt *packet) in ldns_pkt_id() argument 41 return packet->_header->_id; in ldns_pkt_id() 45 ldns_pkt_qr(const ldns_pkt *packet) in ldns_pkt_qr() argument 47 return packet->_header->_qr; in ldns_pkt_qr() 51 ldns_pkt_aa(const ldns_pkt *packet) in ldns_pkt_aa() argument 53 return packet->_header->_aa; in ldns_pkt_aa() 57 ldns_pkt_tc(const ldns_pkt *packet) in ldns_pkt_tc() argument 59 return packet->_header->_tc; in ldns_pkt_tc() 63 ldns_pkt_rd(const ldns_pkt *packet) in ldns_pkt_rd() argument 65 return packet->_header->_rd; in ldns_pkt_rd() [all …]
|
| HD | wire2host.c | 364 ldns_wire2pkt_hdr(ldns_pkt *packet, const uint8_t *wire, size_t max, size_t *pos) in ldns_wire2pkt_hdr() argument 369 ldns_pkt_set_id(packet, LDNS_ID_WIRE(wire)); in ldns_wire2pkt_hdr() 370 ldns_pkt_set_qr(packet, LDNS_QR_WIRE(wire)); in ldns_wire2pkt_hdr() 371 ldns_pkt_set_opcode(packet, LDNS_OPCODE_WIRE(wire)); in ldns_wire2pkt_hdr() 372 ldns_pkt_set_aa(packet, LDNS_AA_WIRE(wire)); in ldns_wire2pkt_hdr() 373 ldns_pkt_set_tc(packet, LDNS_TC_WIRE(wire)); in ldns_wire2pkt_hdr() 374 ldns_pkt_set_rd(packet, LDNS_RD_WIRE(wire)); in ldns_wire2pkt_hdr() 375 ldns_pkt_set_ra(packet, LDNS_RA_WIRE(wire)); in ldns_wire2pkt_hdr() 376 ldns_pkt_set_ad(packet, LDNS_AD_WIRE(wire)); in ldns_wire2pkt_hdr() 377 ldns_pkt_set_cd(packet, LDNS_CD_WIRE(wire)); in ldns_wire2pkt_hdr() [all …]
|
| HD | host2wire.c | 228 ldns_hdr2buffer_wire(ldns_buffer *buffer, const ldns_pkt *packet) in ldns_hdr2buffer_wire() argument 234 ldns_buffer_write_u16(buffer, ldns_pkt_id(packet)); in ldns_hdr2buffer_wire() 236 flags = ldns_pkt_qr(packet) << 7 in ldns_hdr2buffer_wire() 237 | ldns_pkt_get_opcode(packet) << 3 in ldns_hdr2buffer_wire() 238 | ldns_pkt_aa(packet) << 2 in ldns_hdr2buffer_wire() 239 | ldns_pkt_tc(packet) << 1 | ldns_pkt_rd(packet); in ldns_hdr2buffer_wire() 242 flags = ldns_pkt_ra(packet) << 7 in ldns_hdr2buffer_wire() 244 | ldns_pkt_ad(packet) << 5 in ldns_hdr2buffer_wire() 245 | ldns_pkt_cd(packet) << 4 in ldns_hdr2buffer_wire() 246 | ldns_pkt_get_rcode(packet); in ldns_hdr2buffer_wire() [all …]
|
| /NextBSD/contrib/llvm/tools/lldb/source/Plugins/Process/gdb-remote/ |
| HD | GDBRemoteCommunicationServerCommon.h | 53 Handle_A (StringExtractorGDBRemote &packet); 56 Handle_qHostInfo (StringExtractorGDBRemote &packet); 59 Handle_qProcessInfoPID (StringExtractorGDBRemote &packet); 62 Handle_qfProcessInfo (StringExtractorGDBRemote &packet); 65 Handle_qsProcessInfo (StringExtractorGDBRemote &packet); 68 Handle_qUserName (StringExtractorGDBRemote &packet); 71 Handle_qGroupName (StringExtractorGDBRemote &packet); 74 Handle_qSpeedTest (StringExtractorGDBRemote &packet); 77 Handle_qKillSpawnedProcess (StringExtractorGDBRemote &packet); 80 Handle_vFile_Open (StringExtractorGDBRemote &packet); [all …]
|
| HD | GDBRemoteCommunicationServerLLGS.h | 148 Handle_k (StringExtractorGDBRemote &packet); 151 Handle_qProcessInfo (StringExtractorGDBRemote &packet); 154 Handle_qC (StringExtractorGDBRemote &packet); 157 Handle_QSetDisableASLR (StringExtractorGDBRemote &packet); 160 Handle_QSetWorkingDir (StringExtractorGDBRemote &packet); 163 Handle_qGetWorkingDir (StringExtractorGDBRemote &packet); 166 Handle_C (StringExtractorGDBRemote &packet); 169 Handle_c (StringExtractorGDBRemote &packet); 172 Handle_vCont (StringExtractorGDBRemote &packet); 175 Handle_vCont_actions (StringExtractorGDBRemote &packet); [all …]
|
| HD | GDBRemoteCommunicationServerCommon.cpp | 154 GDBRemoteCommunicationServerCommon::Handle_qHostInfo (StringExtractorGDBRemote &packet) in Handle_qHostInfo() argument 269 GDBRemoteCommunicationServerCommon::Handle_qProcessInfoPID (StringExtractorGDBRemote &packet) in Handle_qProcessInfoPID() argument 272 packet.SetFilePos (::strlen ("qProcessInfoPID:")); in Handle_qProcessInfoPID() 273 lldb::pid_t pid = packet.GetU32 (LLDB_INVALID_PROCESS_ID); in Handle_qProcessInfoPID() 288 GDBRemoteCommunicationServerCommon::Handle_qfProcessInfo (StringExtractorGDBRemote &packet) in Handle_qfProcessInfo() argument 294 packet.SetFilePos(::strlen ("qfProcessInfo")); in Handle_qfProcessInfo() 295 if (packet.GetChar() == ':') in Handle_qfProcessInfo() 300 while (packet.GetNameColonValue(key, value)) in Handle_qfProcessInfo() 383 return Handle_qsProcessInfo (packet); in Handle_qfProcessInfo() 389 GDBRemoteCommunicationServerCommon::Handle_qsProcessInfo (StringExtractorGDBRemote &packet) in Handle_qsProcessInfo() argument [all …]
|
| HD | GDBRemoteCommunicationServerLLGS.cpp | 184 [this](StringExtractorGDBRemote packet, in RegisterPacketHandlers() 190 return this->Handle_k (packet); in RegisterPacketHandlers() 902 GDBRemoteCommunicationServerLLGS::Handle_qProcessInfo (StringExtractorGDBRemote &packet) in Handle_qProcessInfo() argument 923 GDBRemoteCommunicationServerLLGS::Handle_qC (StringExtractorGDBRemote &packet) in Handle_qC() argument 965 GDBRemoteCommunicationServerLLGS::Handle_k (StringExtractorGDBRemote &packet) in Handle_k() argument 994 GDBRemoteCommunicationServerLLGS::Handle_QSetDisableASLR (StringExtractorGDBRemote &packet) in Handle_QSetDisableASLR() argument 996 packet.SetFilePos(::strlen ("QSetDisableASLR:")); in Handle_QSetDisableASLR() 997 if (packet.GetU32(0)) in Handle_QSetDisableASLR() 1005 GDBRemoteCommunicationServerLLGS::Handle_QSetWorkingDir (StringExtractorGDBRemote &packet) in Handle_QSetWorkingDir() argument 1007 packet.SetFilePos (::strlen ("QSetWorkingDir:")); in Handle_QSetWorkingDir() [all …]
|
| HD | GDBRemoteCommunicationClient.cpp | 411 StreamString packet; in GetRemoteQSupported() local 412 packet.PutCString( "qSupported" ); in GetRemoteQSupported() 415 packet.PutCString( i==0 ? ":" : ";"); in GetRemoteQSupported() 416 packet.PutCString( features[i].c_str( ) ); in GetRemoteQSupported() 420 if (SendPacketAndWaitForResponse(packet.GetData(), in GetRemoteQSupported() 598 char packet[256]; in GetpPacketSupported() local 600 snprintf(packet, sizeof(packet), "p0;thread:%" PRIx64 ";", tid); in GetpPacketSupported() 602 snprintf(packet, sizeof(packet), "p0"); in GetpPacketSupported() 604 if (SendPacketAndWaitForResponse(packet, response, false) == PacketResult::Success) in GetpPacketSupported() 682 char packet[256]; in GetxPacketSupported() local [all …]
|
| HD | GDBRemoteCommunicationServer.cpp | 52 StringExtractorGDBRemote packet; in GetPacketAndSendResponse() local 54 …PacketResult packet_result = WaitForPacketWithTimeoutMicroSecondsNoLock (packet, timeout_usec, fal… in GetPacketAndSendResponse() 57 … const StringExtractorGDBRemote::ServerPacketType packet_type = packet.GetServerPacketType (); in GetPacketAndSendResponse() 70 packet_result = SendUnimplementedResponse (packet.GetStringRef().c_str()); in GetPacketAndSendResponse() 76 packet_result = SendUnimplementedResponse (packet.GetStringRef().c_str()); in GetPacketAndSendResponse() 78 packet_result = handler_it->second (packet, error, interrupt, quit); in GetPacketAndSendResponse() 113 char packet[16]; in SendErrorResponse() local 114 int packet_len = ::snprintf (packet, sizeof(packet), "E%2.2x", err); in SendErrorResponse() 115 assert (packet_len < (int)sizeof(packet)); in SendErrorResponse() 116 return SendPacketNoLock (packet, packet_len); in SendErrorResponse()
|
| /NextBSD/contrib/netbsd-tests/ipf/expected/ |
| HD | 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 …]
|
| HD | 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 …]
|
| /NextBSD/sys/ofed/drivers/infiniband/core/ |
| HD | user_mad.c | 228 struct ib_umad_packet *packet) in queue_packet() argument 234 for (packet->mad.hdr.id = 0; in queue_packet() 235 packet->mad.hdr.id < IB_UMAD_MAX_AGENTS; in queue_packet() 236 packet->mad.hdr.id++) in queue_packet() 237 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet() 238 list_add_tail(&packet->list, &file->recv_list); in queue_packet() 251 struct ib_umad_packet *packet) in dequeue_send() argument 254 list_del(&packet->list); in dequeue_send() 262 struct ib_umad_packet *packet = send_wc->send_buf->context[0]; in send_handler() local 264 dequeue_send(file, packet); in send_handler() [all …]
|
| /NextBSD/sbin/dhclient/ |
| HD | options.c | 54 void parse_options(struct packet *); 55 void parse_option_buffer(struct packet *, unsigned char *, int); 58 void expand_domain_search(struct packet *packet); 68 parse_options(struct packet *packet) in parse_options() argument 71 memset(packet->options, 0, sizeof(packet->options)); in parse_options() 74 if (memcmp(packet->raw->options, DHCP_OPTIONS_COOKIE, 4)) { in parse_options() 75 packet->options_valid = 0; in parse_options() 83 parse_option_buffer(packet, &packet->raw->options[4], in parse_options() 84 packet->packet_length - DHCP_FIXED_NON_UDP - 4); in parse_options() 90 if (packet->options_valid && in parse_options() [all …]
|
| HD | dhclient.c | 617 ip->client->xid = ip->client->packet.xid; in state_init() 709 ip->client->xid = ip->client->packet.xid; in state_selecting() 722 dhcpack(struct packet *packet) in dhcpack() argument 724 struct interface_info *ip = packet->interface; in dhcpack() 729 if (packet->interface->client->xid != packet->raw->xid || in dhcpack() 730 (packet->interface->hw_address.hlen != packet->raw->hlen) || in dhcpack() 731 (memcmp(packet->interface->hw_address.haddr, in dhcpack() 732 packet->raw->chaddr, packet->raw->hlen))) in dhcpack() 741 note("DHCPACK from %s", piaddr(packet->client_addr)); in dhcpack() 743 lease = packet_to_lease(packet); in dhcpack() [all …]
|
| /NextBSD/sys/boot/i386/common/ |
| HD | drv.c | 56 static struct edd_packet packet; variable 67 packet.len = sizeof(struct edd_packet); in drvread() 68 packet.count = nblk; in drvread() 69 packet.off = VTOPOFF(buf); in drvread() 70 packet.seg = VTOPSEG(buf); in drvread() 71 packet.lba = lba; in drvread() 76 v86.ds = VTOPSEG(&packet); in drvread() 77 v86.esi = VTOPOFF(&packet); in drvread() 101 packet.len = sizeof(struct edd_packet); in drvwrite() 102 packet.count = nblk; in drvwrite() [all …]
|
| /NextBSD/sys/dev/hyperv/netvsc/ |
| HD | hv_netvsc_drv_freebsd.c | 426 netvsc_packet *packet = (netvsc_packet *)context; in netvsc_xmit_completion() local 430 mb = (struct mbuf *)(uintptr_t)packet->compl.send.send_completion_tid; in netvsc_xmit_completion() 431 buf = ((uint8_t *)packet) - HV_NV_PACKET_OFFSET_IN_BUF; in netvsc_xmit_completion() 451 netvsc_packet *packet; in hn_start_locked() local 530 packet = (netvsc_packet *)(buf + HV_NV_PACKET_OFFSET_IN_BUF); in hn_start_locked() 533 packet->is_data_pkt = TRUE; in hn_start_locked() 536 packet->page_buf_count = num_frags; in hn_start_locked() 539 packet->tot_data_buf_len = len; in hn_start_locked() 547 packet->rndis_mesg = packet + 1; in hn_start_locked() 548 rndis_mesg = (rndis_msg *)packet->rndis_mesg; in hn_start_locked() [all …]
|
| /NextBSD/contrib/gdb/gdb/ |
| HD | xmodem.c | 163 xmodem_send_packet (struct serial *desc, unsigned char *packet, int len, int hashmark) in xmodem_send_packet() argument 172 packet[1] = blknum; in xmodem_send_packet() 173 packet[2] = ~blknum; in xmodem_send_packet() 179 packet[0] = SOH; in xmodem_send_packet() 184 packet[0] = STX; in xmodem_send_packet() 192 memset (packet + 3 + len, '\026', datasize - len); in xmodem_send_packet() 198 crc = docrc (packet + 3, datasize); in xmodem_send_packet() 200 packet[3 + datasize] = crc >> 8; in xmodem_send_packet() 201 packet[3 + datasize + 1] = crc; in xmodem_send_packet() 210 sum += packet[i]; in xmodem_send_packet() [all …]
|
| /NextBSD/tools/tools/ether_reflect/ |
| HD | ether_reflect.c | 75 unsigned char *packet = NULL; in main() local 131 (const unsigned char **)&packet); in main() 143 &packet[0])); in main() 146 &packet[ETHER_ADDR_LEN])); in main() 154 bcopy(packet, &tmp, ETHER_ADDR_LEN); in main() 155 bcopy(&packet[ETHER_ADDR_LEN], packet, ETHER_ADDR_LEN); in main() 156 bcopy(&tmp, &packet[ETHER_ADDR_LEN], ETHER_ADDR_LEN); in main() 158 bcopy(&tmp, packet, ETHER_ADDR_LEN); in main() 160 if (pcap_inject(capture, packet, header->len) < 0) in main()
|
| /NextBSD/contrib/ldns/ldns/ |
| HD | packet.h | 506 ldns_rr_list *ldns_pkt_rr_list_by_name_and_type(const ldns_pkt *packet, const ldns_rdf *ownername, … 668 uint16_t ldns_pkt_edns_udp_size(const ldns_pkt *packet); 674 uint8_t ldns_pkt_edns_extended_rcode(const ldns_pkt *packet); 680 uint8_t ldns_pkt_edns_version(const ldns_pkt *packet); 686 uint16_t ldns_pkt_edns_z(const ldns_pkt *packet); 692 ldns_rdf *ldns_pkt_edns_data(const ldns_pkt *packet); 699 bool ldns_pkt_edns_do(const ldns_pkt *packet); 705 void ldns_pkt_set_edns_do(ldns_pkt *packet, bool value); 716 bool ldns_pkt_edns(const ldns_pkt *packet); 723 void ldns_pkt_set_edns_udp_size(ldns_pkt *packet, uint16_t s); [all …]
|
| /NextBSD/crypto/openssh/ |
| HD | PROTOCOL.chacha20poly1305 | 19 data passed to the MAC and in the addition of encyption of the packet 39 to encrypt the 4 byte packet length field. The second instance, 42 and authenticate the entire packet. 44 Two separate cipher instances are used here so as to keep the packet 45 lengths confidential but not create an oracle for the packet payload 46 cipher by decrypting and using the packet length prior to checking 48 length, an active attacker seeking to exploit the packet input handling 52 The AEAD is constructed as follows: for each packet, generate a Poly1305 54 using K_2, an IV consisting of the packet sequence number encoded as an 58 for encryption of the packet payload. [all …]
|
| /NextBSD/crypto/heimdal/lib/krb5/ |
| HD | write_message.c | 63 krb5_data packet; in krb5_write_priv_message() local 65 ret = krb5_mk_priv (context, ac, data, &packet, NULL); in krb5_write_priv_message() 68 ret = krb5_write_message(context, p_fd, &packet); in krb5_write_priv_message() 69 krb5_data_free(&packet); in krb5_write_priv_message() 80 krb5_data packet; in krb5_write_safe_message() local 81 ret = krb5_mk_safe (context, ac, data, &packet, NULL); in krb5_write_safe_message() 84 ret = krb5_write_message(context, p_fd, &packet); in krb5_write_safe_message() 85 krb5_data_free(&packet); in krb5_write_safe_message()
|
| HD | read_message.c | 79 krb5_data packet; in krb5_read_priv_message() local 81 ret = krb5_read_message(context, p_fd, &packet); in krb5_read_priv_message() 84 ret = krb5_rd_priv (context, ac, &packet, data, NULL); in krb5_read_priv_message() 85 krb5_data_free(&packet); in krb5_read_priv_message() 96 krb5_data packet; in krb5_read_safe_message() local 98 ret = krb5_read_message(context, p_fd, &packet); in krb5_read_safe_message() 101 ret = krb5_rd_safe (context, ac, &packet, data, NULL); in krb5_read_safe_message() 102 krb5_data_free(&packet); in krb5_read_safe_message()
|
| /NextBSD/crypto/heimdal/appl/test/ |
| HD | tcp_client.c | 46 krb5_data packet; in proto() local 86 krb5_data_zero (&packet); in proto() 91 &packet, in proto() 96 len = packet.length; in proto() 101 if (krb5_net_write (context, &sock, packet.data, len) != len) in proto() 107 krb5_data_free (&packet); in proto() 112 &packet, in proto() 117 len = packet.length; in proto() 122 if (krb5_net_write (context, &sock, packet.data, len) != len) in proto()
|
| /NextBSD/crypto/heimdal/lib/roken/ |
| HD | socket_wrapper.c | 782 struct swrap_packet *packet; in swrap_packet_init() local 785 size_t nonwire_len = sizeof(packet->frame); in swrap_packet_init() 797 wire_hdr_len = sizeof(packet->ip.hdr) + sizeof(packet->ip.p.tcp); in swrap_packet_init() 803 wire_hdr_len = sizeof(packet->ip.hdr) + sizeof(packet->ip.p.udp); in swrap_packet_init() 814 icmp_hdr_len = sizeof(packet->ip.hdr) + sizeof(packet->ip.p.icmp); in swrap_packet_init() 827 packet = ret; in swrap_packet_init() 829 packet->frame.seconds = tval->tv_sec; in swrap_packet_init() 830 packet->frame.micro_seconds = tval->tv_usec; in swrap_packet_init() 831 packet->frame.recorded_length = wire_len - icmp_truncate_len; in swrap_packet_init() 832 packet->frame.full_length = wire_len - icmp_truncate_len; in swrap_packet_init() [all …]
|
| /NextBSD/sbin/dhclient/tests/ |
| HD | option-domain-search.c | 10 void expand_domain_search(struct packet *packet); 17 struct packet p; in no_option_present() 36 struct packet p; in one_domain_valid() 63 struct packet p; in one_domain_truncated1() 87 struct packet p; in one_domain_truncated2() 110 struct packet p; in two_domains_valid() 137 struct packet p; in two_domains_truncated1() 161 struct packet p; in two_domains_truncated2() 184 struct packet p; in two_domains_compressed() 210 struct packet p; in two_domains_infloop() [all …]
|