Searched refs:pkt (Results 1 - 25 of 185) sorted by relevance

12345678

/macosx-10.9.5/bootp-268.1/bootplib/
H A Din_cksum.h26 extern unsigned short in_cksum(void * pkt, int len);
H A Dbsdplib.h30 bsdp_print_packet(struct dhcp * pkt, int length, int options_only);
H A DDHCPv6.c99 DHCPv6PacketSetMessageType(DHCPv6PacketRef pkt, int msg_type) argument
101 pkt->msg_type = msg_type;
114 DHCPv6PacketSetTransactionID(DHCPv6PacketRef pkt, uint32_t transaction_id) argument
121 pkt->transaction_id[0] = v[1];
122 pkt->transaction_id[1] = v[2];
123 pkt->transaction_id[2] = v[3];
137 DHCPv6PacketGetTransactionID(const DHCPv6PacketRef pkt) argument
145 v[1] = pkt->transaction_id[0];
146 v[2] = pkt->transaction_id[1];
147 v[3] = pkt
152 DHCPv6PacketPrintToString(CFMutableStringRef str, const DHCPv6PacketRef pkt, int pkt_len) argument
168 DHCPv6PacketFPrint(FILE * file, const DHCPv6PacketRef pkt, int pkt_len) argument
[all...]
H A DDHCPv6.h119 DHCPv6PacketGetTransactionID(const DHCPv6PacketRef pkt);
122 DHCPv6PacketSetTransactionID(DHCPv6PacketRef pkt, uint32_t transaction_id);
125 DHCPv6PacketSetMessageType(DHCPv6PacketRef pkt, int msg_type);
128 DHCPv6PacketFPrint(FILE * file, const DHCPv6PacketRef pkt, int pkt_len);
132 const DHCPv6PacketRef pkt, int pkt_len);
H A Dbpflib.h36 int bpf_write(int fd, void * pkt, int len);
/macosx-10.9.5/bind9-45.100/bind9/lib/lwres/
H A Dlwpacket.c42 * resolver packet structure #lwres_lwpacket_t *pkt in network byte
47 * packet *pkt. The contents of the buffer b should correspond to a
55 * lightweight resolver packet *pkt both functions return
75 /*% transfers the contents of lightweight resolver packet structure lwres_lwpacket_t *pkt in network byte order to the lightweight resolver buffer, *b. */
78 lwres_lwpacket_renderheader(lwres_buffer_t *b, lwres_lwpacket_t *pkt) { argument
80 REQUIRE(pkt != NULL);
85 lwres_buffer_putuint32(b, pkt->length);
86 lwres_buffer_putuint16(b, pkt->version);
87 lwres_buffer_putuint16(b, pkt->pktflags);
88 lwres_buffer_putuint32(b, pkt
101 lwres_lwpacket_parseheader(lwres_buffer_t *b, lwres_lwpacket_t *pkt) argument
[all...]
H A Dlwres_noop.c61 * pkt is initialised and transferred to buffer b. The contents of *req
68 * packet pkt to a lwres_nooprequest_t structure. Buffer b provides space
117 lwres_lwpacket_t *pkt, lwres_buffer_t *b)
126 REQUIRE(pkt != NULL);
137 pkt->length = buflen;
138 pkt->version = LWRES_LWPACKETVERSION_0;
139 pkt->pktflags &= ~LWRES_LWPACKETFLAG_RESPONSE;
140 pkt->opcode = LWRES_OPCODE_NOOP;
141 pkt->result = 0;
142 pkt
116 lwres_nooprequest_render(lwres_context_t *ctx, lwres_nooprequest_t *req, lwres_lwpacket_t *pkt, lwres_buffer_t *b) argument
169 lwres_noopresponse_render(lwres_context_t *ctx, lwres_noopresponse_t *req, lwres_lwpacket_t *pkt, lwres_buffer_t *b) argument
220 lwres_nooprequest_parse(lwres_context_t *ctx, lwres_buffer_t *b, lwres_lwpacket_t *pkt, lwres_nooprequest_t **structp) argument
268 lwres_noopresponse_parse(lwres_context_t *ctx, lwres_buffer_t *b, lwres_lwpacket_t *pkt, lwres_noopresponse_t **structp) argument
[all...]
H A Dlwresutil.c249 lwres_lwpacket_t pkt; local
284 pkt.pktflags = 0;
285 pkt.serial = serial;
286 pkt.result = 0;
287 pkt.recvlength = LWRES_RECVLENGTH;
290 ret = lwres_gabnrequest_render(ctx, &request, &pkt, &b_out);
305 ret = lwres_lwpacket_parseheader(&b_in, &pkt);
312 if (pkt.serial != serial)
314 if (pkt.opcode != LWRES_OPCODE_GETADDRSBYNAME)
324 if (pkt
365 lwres_lwpacket_t pkt; local
472 lwres_lwpacket_t pkt; local
[all...]
H A Dlwres_gnba.c59 header structure pkt is initialised and transferred to buffer b.
66 of packet pkt to a lwres_gnbarequest_t structure. Buffer b provides
118 lwres_lwpacket_t *pkt, lwres_buffer_t *b)
129 REQUIRE(pkt != NULL);
140 pkt->length = buflen;
141 pkt->version = LWRES_LWPACKETVERSION_0;
142 pkt->pktflags &= ~LWRES_LWPACKETFLAG_RESPONSE;
143 pkt->opcode = LWRES_OPCODE_GETNAMEBYADDR;
144 pkt->result = 0;
145 pkt
117 lwres_gnbarequest_render(lwres_context_t *ctx, lwres_gnbarequest_t *req, lwres_lwpacket_t *pkt, lwres_buffer_t *b) argument
174 lwres_gnbaresponse_render(lwres_context_t *ctx, lwres_gnbaresponse_t *req, lwres_lwpacket_t *pkt, lwres_buffer_t *b) argument
246 lwres_gnbarequest_parse(lwres_context_t *ctx, lwres_buffer_t *b, lwres_lwpacket_t *pkt, lwres_gnbarequest_t **structp) argument
291 lwres_gnbaresponse_parse(lwres_context_t *ctx, lwres_buffer_t *b, lwres_lwpacket_t *pkt, lwres_gnbaresponse_t **structp) argument
[all...]
/macosx-10.9.5/xnu-2422.115.4/osfmk/kdp/
H A Dkdp_en_debugger.h33 typedef void (*kdp_send_t)(void * pkt, unsigned int pkt_len);
34 typedef void (*kdp_receive_t)(void * pkt, unsigned int * pkt_len,
H A Dkdp_udp.c222 } pkt, saved_reply; variable in typeref:struct:__anon15399
593 if (!pkt.input)
596 pkt.off -= (unsigned int)sizeof (struct kdp_udpiphdr);
599 bcopy((char *)&pkt.data[pkt.off], (char *)ui, sizeof(*ui));
601 ui = (struct kdp_udpiphdr *)&pkt.data[pkt.off];
606 ui->ui_len = htons((u_short)pkt.len + sizeof (struct kdp_udphdr));
615 bcopy((char *)ui, (char *)&pkt.data[pkt
[all...]
/macosx-10.9.5/ppp-727.90.1/Family/
H A Dppp_ip.h35 int ppp_ip_af_src_out(ifnet_t ifp, char *pkt);
36 int ppp_ip_af_src_in(ifnet_t ifp, char *pkt);
38 int ppp_ip_bootp_server_in(ifnet_t ifp, char *pkt);
39 int ppp_ip_bootp_client_in(ifnet_t ifp, char *pkt);
/macosx-10.9.5/eap8021x-180/EAP8021X.fproj/
H A DEAPOL.h54 EAPOLPacketSetLength(EAPOLPacketRef pkt, uint16_t length);
57 EAPOLPacketGetLength(const EAPOLPacketRef pkt);
88 EAPOLRC4KeyDescriptorSetLength(EAPOLRC4KeyDescriptorRef pkt, uint16_t length);
91 EAPOLKeyDescriptorSetLength(EAPOLKeyDescriptorRef pkt, uint16_t length);
94 EAPOLRC4KeyDescriptorGetLength(const EAPOLRC4KeyDescriptorRef pkt);
97 EAPOLKeyDescriptorGetLength(const EAPOLKeyDescriptorRef pkt);
120 EAPOLIEEE80211KeyDescriptorGetLength(const EAPOLIEEE80211KeyDescriptorRef pkt);
123 EAPOLIEEE80211KeyDescriptorGetInformation(const EAPOLIEEE80211KeyDescriptorRef pkt);
126 EAPOLIEEE80211KeyDescriptorGetKeyDataLength(const EAPOLIEEE80211KeyDescriptorRef pkt);
H A DEAPOLUtil.c322 EAPOLPacketSetLength(EAPOLPacketRef pkt, uint16_t length) argument
324 net_uint16_set(pkt->body_length, length);
329 EAPOLPacketGetLength(const EAPOLPacketRef pkt) argument
331 return (net_uint16_get(pkt->body_length));
335 EAPOLRC4KeyDescriptorSetLength(EAPOLRC4KeyDescriptorRef pkt, uint16_t length) argument
337 net_uint16_set(pkt->key_length, length);
342 EAPOLKeyDescriptorSetLength(EAPOLKeyDescriptorRef pkt, uint16_t length) argument
344 EAPOLRC4KeyDescriptorSetLength(pkt, length);
349 EAPOLRC4KeyDescriptorGetLength(const EAPOLRC4KeyDescriptorRef pkt) argument
351 return (net_uint16_get(pkt
355 EAPOLKeyDescriptorGetLength(const EAPOLKeyDescriptorRef pkt) argument
361 EAPOLIEEE80211KeyDescriptorGetLength(const EAPOLIEEE80211KeyDescriptorRef pkt) argument
367 EAPOLIEEE80211KeyDescriptorGetInformation(const EAPOLIEEE80211KeyDescriptorRef pkt) argument
373 EAPOLIEEE80211KeyDescriptorGetKeyDataLength(const EAPOLIEEE80211KeyDescriptorRef pkt) argument
[all...]
H A DEAPTLS.h67 EAPTLSLengthIncludedPacketGetMessageLength(EAPTLSLengthIncludedPacketRef pkt);
70 EAPTLSLengthIncludedPacketSetMessageLength(EAPTLSLengthIncludedPacketRef pkt,
/macosx-10.9.5/ppp-727.90.1/Helpers/pppd/
H A Dacsp.h30 printer(arg, " <payload len %d, packet seq %d, %s, flags:%s%s%s%s>", len, pkt->seq, payload_name, ## flag_names) : \
31 printer(arg, " <payload len %d, packet seq %d, CI_TYPE %d, flags:%s%s%s%s>", len, pkt->seq, pkt->type, ## flag_names)
47 void acsp_data_input(int unit, u_char *pkt, int len);
H A Ddemand.c169 struct packet *pkt, *nextpkt; local
179 for (pkt = pend_q; pkt != NULL; pkt = nextpkt) {
180 nextpkt = pkt->next;
181 free(pkt);
304 struct packet *pkt; local
314 pkt = (struct packet *) malloc(sizeof(struct packet) + len);
315 if (pkt != NULL) {
316 pkt
336 struct packet *pkt, *prev, *nextpkt; local
[all...]
/macosx-10.9.5/bind9-45.100/bind9/bin/named/
H A Dlwderror.c34 * The client->pkt structure will be modified to form an error return.
56 client->pkt.length = LWRES_LWPACKET_LENGTH;
57 client->pkt.pktflags |= LWRES_LWPACKETFLAG_RESPONSE;
58 client->pkt.recvlength = LWRES_RECVLENGTH;
59 client->pkt.authtype = 0; /* XXXMLG */
60 client->pkt.authlength = 0;
61 client->pkt.result = _result;
64 lwres = lwres_lwpacket_renderheader(&b, &client->pkt);
H A Dlwdnoop.c45 b, &client->pkt, &req);
49 client->pkt.recvlength = LWRES_RECVLENGTH;
50 client->pkt.authtype = 0; /* XXXMLG */
51 client->pkt.authlength = 0;
52 client->pkt.result = LWRES_R_SUCCESS;
58 &client->pkt, &lwb);
/macosx-10.9.5/bind9-45.100/bind9/lib/lwres/include/lwres/
H A Dlwpacket.h116 #define LWRES_LWPACKETFLAG_RESPONSE 0x0001U /*%< If set, pkt is a response. */
130 * pkt header
152 lwres_lwpacket_renderheader(lwres_buffer_t *b, lwres_lwpacket_t *pkt);
155 lwres_lwpacket_parseheader(lwres_buffer_t *b, lwres_lwpacket_t *pkt);
H A Dlwres.h263 lwres_lwpacket_t *pkt, lwres_buffer_t *b);
267 lwres_lwpacket_t *pkt, lwres_buffer_t *b);
271 lwres_lwpacket_t *pkt, lwres_gabnrequest_t **structp);
275 lwres_lwpacket_t *pkt,
319 lwres_lwpacket_t *pkt, lwres_buffer_t *b);
323 lwres_lwpacket_t *pkt, lwres_buffer_t *b);
327 lwres_lwpacket_t *pkt, lwres_gnbarequest_t **structp);
331 lwres_lwpacket_t *pkt,
374 lwres_lwpacket_t *pkt, lwres_buffer_t *b);
378 lwres_lwpacket_t *pkt, lwres_buffer_
[all...]
/macosx-10.9.5/bootp-268.1/IPConfiguration.bproj/
H A DDHCPv6Socket.h46 DHCPv6PacketRef pkt; member in struct:__anon6713
87 DHCPv6PacketRef pkt, int pkt_len);
/macosx-10.9.5/mDNSResponder-522.92.1/mDNSCore/
H A Ddnsproxy.h23 extern void ProxyUDPCallback(mDNS *const m, void *socket, void *const pkt, const mDNSu8 *const end, const mDNSAddr *const srcaddr,
25 extern void ProxyTCPCallback(mDNS *const m, void *socket, void *const pkt, const mDNSu8 *const end, const mDNSAddr *const srcaddr,
/macosx-10.9.5/ntp-88/libntp/
H A Da_md5encrypt.c27 u_int32 *pkt, /* packet pointer */
48 EVP_DigestUpdate(&ctx, (u_char *)pkt, (u_int)length);
53 MD5Update(&md5, (u_char *)pkt, (u_int)length);
57 memmove((u_char *)pkt + length + 4, digest, len);
71 u_int32 *pkt, /* packet pointer */
93 EVP_DigestUpdate(&ctx, (u_char *)pkt, (u_int)length);
98 MD5Update(&md5, (u_char *)pkt, (u_int)length);
107 return (!memcmp(digest, (char *)pkt + length + 4, len));
24 MD5authencrypt( int type, u_char *key, u_int32 *pkt, int length ) argument
68 MD5authdecrypt( int type, u_char *key, u_int32 *pkt, int length, int size ) argument
/macosx-10.9.5/xnu-2422.115.4/bsd/net/
H A Dif_utun_crypto_ipsec.c697 utun_pkt_ipsec_output (struct utun_pcb *pcb, mbuf_t *pkt) argument
716 proto = *(mtod(*pkt, protocol_family_t *));
717 m_adj(*pkt, sizeof(protocol_family_t));
726 if ((*pkt)->m_len < (__typeof__((*pkt)->m_len))sizeof(*ip)) {
727 if (!(*pkt = m_pullup(*pkt, sizeof(*ip)))) {
734 new = ipsec4_splithdr(*pkt);
738 *pkt = NULL;
741 *pkt
940 utun_pkt_is_ipsec_keepalive(struct utun_pcb *pcb, mbuf_t *pkt, u_int16_t nxt, u_int32_t flags, size_t offs) argument
1046 utun_pkt_ipsec_input(struct utun_pcb *pcb, mbuf_t *pkt, protocol_family_t family) argument
[all...]

Completed in 188 milliseconds

12345678