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

/macosx-10.5.8/xnu-1228.15.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.c88 } pkt, saved_reply; variable in typeref:struct:__anon829
381 if (!pkt.input)
384 pkt.off -= sizeof (struct udpiphdr);
387 bcopy((char *)&pkt.data[pkt.off], (char *)ui, sizeof(*ui));
389 ui = (struct udpiphdr *)&pkt.data[pkt.off];
394 ui->ui_len = htons((u_short)pkt.len + sizeof (struct udphdr));
403 bcopy((char *)ui, (char *)&pkt.data[pkt
[all...]
H A Dkdp.c146 unsigned char *pkt,
151 static unsigned aligned_pkt[1538/sizeof(unsigned)+1]; // max ether pkt
158 bcopy((char *)pkt, (char *)rd, sizeof(aligned_pkt));
160 rd = (kdp_pkt_t *)pkt;
163 printf("kdp_packet bad len pkt %lu hdr %d\n", plen, rd->hdr.len);
185 bcopy((char *)rd, (char *) pkt, *len);
192 kdp_pkt_t *pkt,
197 kdp_pkt_t *rd = (kdp_pkt_t *)pkt;
207 kdp_pkt_t *pkt,
212 kdp_connect_req_t *rq = &pkt
145 kdp_packet( unsigned char *pkt, int *len, unsigned short *reply_port ) argument
191 kdp_unknown( kdp_pkt_t *pkt, __unused int *len, __unused unsigned short *reply_port ) argument
206 kdp_connect( kdp_pkt_t *pkt, int *len, unsigned short *reply_port ) argument
249 kdp_disconnect( kdp_pkt_t *pkt, int *len, unsigned short *reply_port ) argument
293 kdp_reattach( kdp_pkt_t *pkt, int *len, unsigned short *reply_port ) argument
309 kdp_hostinfo( kdp_pkt_t *pkt, int *len, unsigned short *reply_port ) argument
334 kdp_suspend( kdp_pkt_t *pkt, int *len, unsigned short *reply_port ) argument
361 kdp_resumecpus( kdp_pkt_t *pkt, int *len, unsigned short *reply_port ) argument
388 kdp_writemem( kdp_pkt_t *pkt, int *len, unsigned short *reply_port ) argument
421 kdp_readmem( kdp_pkt_t *pkt, int *len, unsigned short *reply_port ) argument
473 kdp_maxbytes( kdp_pkt_t *pkt, int *len, unsigned short *reply_port ) argument
500 kdp_version( kdp_pkt_t *pkt, int *len, unsigned short *reply_port ) argument
535 kdp_regions( kdp_pkt_t *pkt, int *len, unsigned short *reply_port ) argument
571 kdp_writeregs( kdp_pkt_t *pkt, int *len, unsigned short *reply_port ) argument
598 kdp_readregs( kdp_pkt_t *pkt, int *len, unsigned short *reply_port ) argument
625 kdp_breakpoint_set( kdp_pkt_t *pkt, int *len, unsigned short *reply_port ) argument
688 kdp_breakpoint_remove( kdp_pkt_t *pkt, int *len, unsigned short *reply_port ) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/netat/
H A Dddp_aarp.c181 int aarp_rcv_pkt(pkt, elapp)
182 aarp_pkt_t *pkt;
185 switch (ntohs(pkt->aarp_cmd)) {
187 return (aarp_req_cmd_in (pkt, elapp));
189 return (aarp_resp_cmd_in (pkt, elapp));
191 return (aarp_probe_cmd_in (pkt, elapp));
201 StaticProc int aarp_req_cmd_in (pkt, elapp)
202 aarp_pkt_t *pkt;
209 NET_VALUE(pkt->src_at_addr.atalk_net),
210 pkt
584 register aarp_pkt_t *pkt; local
628 register aarp_pkt_t *pkt; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Ddhcp_options.c368 * First the pkt->dp_options is parsed. If that contains
369 * the overload option, it parses pkt->dp_file if specified,
370 * then parses pkt->dp_sname if specified.
373 dhcpol_parse_packet(dhcpol_t * options, const struct dhcp * pkt, int len) argument
379 if (len < (sizeof(*pkt) + RFC_MAGIC_SIZE)) {
381 len, (int)sizeof(*pkt) + RFC_MAGIC_SIZE));
384 if (bcmp(pkt->dp_options, rfc_magic, RFC_MAGIC_SIZE)) {
388 if (dhcpol_parse_buffer(options, pkt->dp_options + RFC_MAGIC_SIZE,
389 len - sizeof(*pkt) - RFC_MAGIC_SIZE) == FALSE)
403 if (dhcpol_parse_buffer(&extra, pkt
633 struct dhcp * pkt = (struct dhcp *)buf; local
[all...]
H A Dip_dummynet.c446 * event handled is the finish time of the head pkt.
449 * event handled is the start time of the head pkt.
459 struct dn_pkt_tag *pkt ; local
464 pkt = dn_tag_get(m);
465 if ( !DN_KEY_LEQ(pkt->output_time, curr_time) )
476 switch (pkt->dn_dir) {
478 struct route tmp_rt = pkt->ro;
479 (void)ip_output(m, NULL, NULL, pkt->flags, NULL, NULL);
499 printf("dummynet/bridge: pullup fail, dropping pkt\n");
502 m = bdg_forward_ptr(m, pkt
550 move_pkt(struct mbuf *pkt, struct dn_flow_queue *q, struct dn_pipe *p, int len) argument
579 struct mbuf *pkt; local
669 struct mbuf *pkt = q->head; local
1157 struct dn_pkt_tag *pkt; local
1495 struct dn_pkt_tag *pkt = dn_tag_get(m) ; local
1509 struct dn_pkt_tag *pkt ; local
[all...]
H A Din_dhcp.c152 struct mbuf * ip_pkt_to_mbuf(caddr_t pkt, int pktsize);
181 init_dhcp_packet_header(struct dhcp_packet * pkt, int pkt_size) argument
183 bzero(&pkt->ip, sizeof(pkt->ip));
184 bzero(&pkt->udp, sizeof(pkt->udp));
185 pkt->ip.ip_v = IPVERSION;
186 pkt->ip.ip_hl = sizeof(struct ip) >> 2;
187 pkt->ip.ip_ttl = MAXTTL;
188 pkt
249 ip_pkt_to_mbuf(caddr_t pkt, int pktsize) argument
321 send_packet(struct ifnet * ifp, struct dhcp_packet * pkt, int pkt_size) argument
[all...]
H A Ddhcp_options.h201 const struct dhcp * pkt, int len);
H A Dip_fw2.c571 if (f == NULL) { /* bogus pkt */
873 lookup_dyn_rule(struct ipfw_flow_id *pkt, int *match_direction, argument
895 i = hash_packet( pkt );
914 if (pkt->proto == q->id.proto &&
916 if (pkt->src_ip == q->id.src_ip &&
917 pkt->dst_ip == q->id.dst_ip &&
918 pkt->src_port == q->id.src_port &&
919 pkt->dst_port == q->id.dst_port ) {
923 if (pkt->src_ip == q->id.dst_ip &&
924 pkt
1103 lookup_dyn_parent(struct ipfw_flow_id *pkt, struct ip_fw *rule) argument
[all...]
H A Dtcp_output.c1635 tcp_ip_output(struct socket *so, struct tcpcb *tp, struct mbuf *pkt, argument
1683 while (pkt != NULL) {
1684 struct mbuf *npkt = pkt->m_nextpkt;
1687 pkt->m_nextpkt = NULL;
1701 error = ip_output_list(pkt, cnt, opt, &inp->inp_route,
1713 pkt = npkt;
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dnetboot.c309 const void * pkt; local
316 pkt = IOBSDRegistryEntryGetData(entry, BSDP_RESPONSE, &pkt_len);
317 if (pkt != NULL && pkt_len >= (int)sizeof(struct dhcp)) {
321 pkt = IOBSDRegistryEntryGetData(entry, BOOTP_RESPONSE,
323 if (pkt != NULL && pkt_len >= (int)sizeof(struct dhcp)) {
327 if (pkt != NULL) {
333 reply = (const struct dhcp *)pkt;
496 const void * pkt; local
504 pkt = IOBSDRegistryEntryGetData(entry, DHCP_RESPONSE, &pkt_len);
505 if (pkt !
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/ml/i386/
H A Dkdp_machdep.c82 unsigned char *pkt,
90 kdp_exception_t *rq = (kdp_exception_t *)pkt;
106 bcopy((char *)rq, (char *)pkt, rq->hdr.len);
116 unsigned char *pkt,
120 kdp_exception_ack_t *rq = (kdp_exception_ack_t *)pkt;
81 kdp_exception( unsigned char *pkt, int *len, unsigned short *remote_port, unsigned int exception, unsigned int code, unsigned int subcode ) argument
115 kdp_exception_ack( unsigned char *pkt, int len ) argument
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/ml/ppc/
H A Dkdp_machdep.c73 unsigned char *pkt,
82 kdp_exception_t pkt; member in struct:__anon837
87 bcopy((char *)pkt, (char *)rq, sizeof(*rq));
102 bcopy((char *)rq, (char *)pkt, rq->hdr.len);
112 unsigned char *pkt,
122 bcopy((char *)pkt, (char *)rq, sizeof(*rq));
72 kdp_exception( unsigned char *pkt, int *len, unsigned short *remote_port, unsigned int exception, unsigned int code, unsigned int subcode ) argument
111 kdp_exception_ack( unsigned char *pkt, int len ) argument
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dbpf.c1616 * Move the packet data from interface memory (pkt) into the
1621 * pkt is really an mbuf.
1624 catchpacket(struct bpf_d *d, u_char *pkt, u_int pktlen, u_int snaplen, argument
1679 (*cpfn)(pkt, (u_char *)hp + hdrlen, (hp->bh_caplen = totlen - hdrlen));
H A Dif_bond.c4409 packet_buffer_ref pkt; local
4449 pkt = packet_buffer_allocate(sizeof(*out_lacpdu_p));
4450 if (pkt == NULL) {
4455 out_lacpdu_p = (lacpdu_ref)packet_buffer_byteptr(pkt);
4491 bondport_slow_proto_transmit(p, pkt);

Completed in 74 milliseconds