| /src/external/bsd/nsd/dist/ |
| packet.h | 2 * packet.h -- low-level DNS packet encoding and decoding functions. 52 #define RD(packet) (*buffer_at((packet), 2) & RD_MASK) 53 #define RD_SET(packet) (*buffer_at((packet), 2) |= RD_MASK) 54 #define RD_CLR(packet) (*buffer_at((packet), 2) &= ~RD_MASK) 58 #define TC(packet) (*buffer_at((packet), 2) & TC_MASK [all...] |
| packet.c | 2 * packet.c -- low-level DNS packet encoding and decoding functions. 14 #include "packet.h" 26 query_put_dname_offset(q, domain, buffer_position(q->packet)); 32 buffer_write(q->packet, dname_name(domain_dname(domain)), 43 buffer_write_u16(q->packet, 46 buffer_write_u8(q->packet, 0); 64 * If the record does not in fit in the packet the packet size 67 truncation_mark = buffer_position(q->packet); [all...] |
| tsig.c | 18 #include "packet.h" 485 tsig_update(tsig_record_type *tsig, buffer_type *packet, size_t length) 489 assert(length <= buffer_limit(packet)); 496 buffer_at(packet, sizeof(original_query_id)), 498 if (QR(packet)) { 546 tsig_find_rr(tsig_record_type *tsig, buffer_type *packet) 548 size_t saved_position = buffer_position(packet); 549 size_t rrcount = ((size_t)QDCOUNT(packet) 550 + (size_t)ANCOUNT(packet) 551 + (size_t)NSCOUNT(packet) [all...] |
| query.c | 42 * This function determines if the final response packet needs the NS RRset 136 buffer_clear(q->packet); 138 QR_SET(q->packet); /* This is an answer. */ 139 AD_CLR(q->packet); 140 RCODE_SET(q->packet, (int) rcode); /* Error code. */ 143 QDCOUNT_SET(q->packet, 0); 144 ANCOUNT_SET(q->packet, 0); 145 NSCOUNT_SET(q->packet, 0); 146 ARCOUNT_SET(q->packet, 0); 147 buffer_set_position(q->packet, QHEADERSZ) [all...] |
| rdata.h | 68 struct buffer *packet, struct rr **rr); 78 uint16_t rdlength, struct buffer *packet, struct rr **rr); 89 uint16_t rdlength, struct buffer *packet, struct rr **rr); 96 struct buffer *packet, struct rr **rr); 103 struct buffer *packet, struct rr **rr); 116 struct buffer *packet, struct rr **rr); 123 struct buffer *packet, struct rr **rr); 130 struct buffer *packet, struct rr **rr); 140 struct buffer *packet, struct rr **rr); 150 struct buffer *packet, struct rr **rr) [all...] |
| rdata.c | 35 { 3, "PGP" }, /* OpenPGP packet */ 38 { 6, "IPGP" }, /* The fingerprint and URL of an OpenPGP packet */ 599 skip_nsec(struct buffer* packet, uint16_t rdlength, uint16_t *offset) 605 uint8_t window = buffer_read_u8(packet); 606 uint8_t blocks = buffer_read_u8(packet); 613 buffer_skip(packet, blocks); 707 * Skip over the svcparams in the packet. Moves position. 708 * @param packet: wire packet, position at rdata fields of svcparams. 709 * @param rdlength: remaining rdata length in the packet [all...] |
| /src/external/bsd/ppp/usr.sbin/pppdump/ |
| pppdump.h | 32 struct packet { struct 37 #define PACKETPTR struct packet *
|
| /src/sys/external/bsd/drm2/dist/drm/amd/amdkfd/ |
| kfd_packet_manager_vi.c | 49 struct pm4_mes_map_process *packet; local 51 packet = (struct pm4_mes_map_process *)buffer; 55 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, 57 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; 58 packet->bitfields2.process_quantum = 1; 59 packet->bitfields2.pasid = qpd->pqm->process->pasid; 60 packet->bitfields3.page_table_base = qpd->page_table_base; 61 packet->bitfields10.gds_size = qpd->gds_size; 62 packet->bitfields10.num_gws = qpd->num_gws; 63 packet->bitfields10.num_oac = qpd->num_oac 82 struct pm4_mes_runlist *packet; local 121 struct pm4_mes_set_resources *packet; local 149 struct pm4_mes_map_queues *packet; local 210 struct pm4_mes_unmap_queues *packet; local 273 struct pm4_mes_query_status *packet; local 297 struct pm4_mec_release_mem *packet; local [all...] |
| kfd_packet_manager_v9.c | 38 struct pm4_mes_map_process *packet; local 41 packet = (struct pm4_mes_map_process *)buffer; 44 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, 46 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; 47 packet->bitfields2.process_quantum = 1; 48 packet->bitfields2.pasid = qpd->pqm->process->pasid; 49 packet->bitfields14.gds_size = qpd->gds_size & 0x3F; 50 packet->bitfields14.gds_size_hi = (qpd->gds_size >> 6) & 0xF; 51 packet->bitfields14.num_gws = qpd->num_gws; 52 packet->bitfields14.num_oac = qpd->num_oac 84 struct pm4_mes_runlist *packet; local 122 struct pm4_mes_set_resources *packet; local 150 struct pm4_mes_map_queues *packet; local 220 struct pm4_mes_unmap_queues *packet; local 293 struct pm4_mes_query_status *packet; local [all...] |
| /src/external/mpl/dhcp/dist/tests/ |
| t_api_dhcp.c | 12 bootp(struct packet *packet) { 16 dhcp(struct packet *packet) { 20 dhcpv6(struct packet *packet) { 34 check_collection(struct packet *p, struct lease *l, struct collection *c) { 39 classify (struct packet *p, struct class *c) {
|
| /src/external/mpl/dhcp/dist/server/ |
| bootp.c | 41 void bootp (packet) 42 struct packet *packet; 47 struct packet outgoing; 61 if (packet -> raw -> op != BOOTREQUEST) 68 print_hw_addr (packet -> raw -> htype, 69 packet -> raw -> hlen, 70 packet -> raw -> chaddr), 71 packet -> raw -> giaddr.s_addr 72 ? inet_ntoa (packet -> raw -> giaddr [all...] |
| dhcp.c | 39 static void maybe_return_agent_options(struct packet *packet, 42 static int reuse_lease (struct packet* packet, struct lease* new_lease, 46 static int do_ping_check(struct packet* packet, struct lease_state* state, 51 static int locate_network6(struct packet *packet); 102 dhcp (struct packet *packet) { [all...] |
| class.c | 60 void classify_client (packet) 61 struct packet *packet; 63 execute_statements (NULL, packet, NULL, NULL, packet->options, NULL, 67 int check_collection (packet, lease, collection) 68 struct packet *packet; 93 (&ignorep, packet, lease, 95 packet -> options, (struct option_state *)0 [all...] |
| dhcpleasequery.c | 134 dhcpleasequery(struct packet *packet, int ms_nulltp) { 172 /* INSIST(packet != NULL); */ 178 "DHCPLEASEQUERY from %s", inet_ntoa(packet->raw->giaddr)); 188 if (!packet->raw->giaddr.s_addr) { 190 msgbuf, inet_ntoa(packet->raw->ciaddr)); 201 gip.len = sizeof(packet->raw->giaddr); 202 memcpy(gip.iabuf, &packet->raw->giaddr, sizeof(packet->raw->giaddr)); 220 execute_statements_in_scope(NULL, packet, NULL, NULL, packet->options 739 struct packet *packet; member in struct:lq6_state 782 struct packet *packet = lq->packet; local 812 struct packet *packet = lq->packet; local 922 struct packet *packet = lq->packet; local [all...] |
| dhcpv6.c | 30 static void forw_dhcpv4_query(struct packet *packet); 35 struct packet *packet); 63 * DHCPv6 Reply workflow assist. A Reply packet is built by various 73 struct packet *packet; member in struct:reply_state 124 struct packet *packet, 127 static void build_dhcpv6_reply(struct data_string *, struct packet *); 7827 struct packet *packet; local [all...] |
| /src/external/mpl/dhcp/dist/server/tests/ |
| load_bal_unittest.c | 29 * packet => the "packet" being processed 32 * packet->raw->secs => amount of time the client has been trying 33 * packet->raw->hlen => the length of the mac address of the client 34 * packet->raw->chaddr => the mac address of the client 58 struct packet packet; local 63 memset(&packet, 0, sizeof(struct packet)); 65 packet.raw = &raw 139 struct packet packet; local [all...] |
| /src/external/bsd/ppp/dist/pppd/plugins/pppoe/ |
| common.c | 37 * packet -- the PPPoE discovery packet to parse 38 * func -- function called for each tag in the packet 43 * Parses a PPPoE discovery packet, calling "func" for each tag in the packet. 47 parsePacket(PPPoEPacket *packet, ParseFunc *func, void *extra) 49 UINT16_t len = ntohs(packet->length); 53 if (PPPOE_VER(packet->vertype) != 1) { 54 error("Invalid PPPoE version (%d)", PPPOE_VER(packet->vertype)); 57 if (PPPOE_TYPE(packet->vertype) != 1) 100 PPPoEPacket packet; local [all...] |
| discovery.c | 103 * packet -- a received PPPoE packet 105 * 1 if packet is for this PPPoE daemon; 0 otherwise. 107 * If we are using the Host-Unique tag, verifies that packet contains 111 packetIsForMe(PPPoEConnection *conn, PPPoEPacket *packet) 115 /* If packet is not directed to our MAC address, forget it */ 116 if (memcmp(packet->ethHdr.h_dest, conn->myEth, ETH_ALEN)) return 0; 118 /* If we're not using the Host-Unique tag, then accept the packet */ 121 parsePacket(packet, parseForHostUniq, &hostUniq); 137 * Picks interesting tags out of a PADO packet 307 PPPoEPacket packet; local 390 PPPoEPacket packet; local 499 PPPoEPacket packet; local 588 PPPoEPacket packet; local [all...] |
| /src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| read_message.c | 81 krb5_data packet; local 83 ret = krb5_read_message(context, p_fd, &packet); 86 ret = krb5_rd_priv (context, ac, &packet, data, NULL); 87 krb5_data_free(&packet); 98 krb5_data packet; local 100 ret = krb5_read_message(context, p_fd, &packet); 103 ret = krb5_rd_safe (context, ac, &packet, data, NULL); 104 krb5_data_free(&packet);
|
| write_message.c | 65 krb5_data packet; local 67 ret = krb5_mk_priv (context, ac, data, &packet, NULL); 70 ret = krb5_write_message(context, p_fd, &packet); 71 krb5_data_free(&packet); 82 krb5_data packet; local 83 ret = krb5_mk_safe (context, ac, data, &packet, NULL); 86 ret = krb5_write_message(context, p_fd, &packet); 87 krb5_data_free(&packet);
|
| /src/external/mpl/dhcp/dist/relay/tests/ |
| relay_unittests.c | 48 /* @brief Add the given option data to a DHCPv4 packet 50 * It first fills the packet.options buffer with the given pad character. 54 * @param packet pointer to the packet 55 * @param data pointer to the option data to copy into the packet's options 58 * @param pad byte value with which to initialize the packet's options buffer 60 * @return returns the new length of the packet 62 unsigned set_packet_options(struct dhcp_packet *packet, 66 memset(packet->options, pad, DHCP_MAX_OPTION_LEN); 70 memcpy(packet->options, DHCP_OPTIONS_COOKIE, new_len) 128 struct dhcp_packet packet; local 245 struct dhcp_packet packet; member in union:__anon24480 286 struct dhcp_packet packet; local [all...] |
| /src/share/doc/psd/20.ipctut/ |
| dgramread.c | 78 perror("receiving datagram packet");
|
| udgramread.c | 74 perror("receiving datagram packet");
|
| /src/crypto/external/bsd/netpgp/dist/src/lib/ |
| Makefile.am | 18 packet-parse.c \ 19 packet-print.c \ 20 packet-show.c \
|
| /src/external/mpl/bind/dist/bin/tests/system/ |
| ditch.pl | 32 use Net::DNS::Packet; 66 my $packet; 68 $packet = new Net::DNS::Packet(); 72 ($packet, $err) = new Net::DNS::Packet(); 77 $packet->header->rd(1); 78 $packet->push(question => $q); 87 my $bytes = $sock->send($packet->data); 89 #print (" ", unpack("H* ", $packet->data), "\n") [all...] |