Home
last modified time | relevance | path

Searched refs:pkt (Results 1 – 3 of 3) sorted by relevance

/busybox-1.35.0/networking/
Dether-wake.c143 static int fill_pkt_header(unsigned char *pkt, struct ether_addr *eaddr, int broadcast) in fill_pkt_header() argument
148 memset(pkt, 0xff, 6); in fill_pkt_header()
150 memcpy(pkt, station_addr, 6); in fill_pkt_header()
151 pkt += 6; in fill_pkt_header()
153 memcpy(pkt, station_addr, 6); /* 6 */ in fill_pkt_header()
154 pkt += 6; in fill_pkt_header()
156 *pkt++ = 0x08; /* 12 */ /* Or 0x0806 for ARP, 0x8035 for RARP */ in fill_pkt_header()
157 *pkt++ = 0x42; /* 13 */ in fill_pkt_header()
159 memset(pkt, 0xff, 6); /* 14 */ in fill_pkt_header()
162 pkt += 6; in fill_pkt_header()
[all …]
Dping.c255 struct icmp *pkt; in ping4() local
258 pkt = (struct icmp *) G.packet; in ping4()
260 pkt->icmp_type = ICMP_ECHO; in ping4()
261 pkt->icmp_id = G.myid; in ping4()
262 pkt->icmp_cksum = inet_cksum(pkt, sizeof(G.packet)); in ping4()
285 pkt = (struct icmp *) (G.packet + (iphdr->ihl << 2)); /* skip ip hdr */ in ping4()
286 if (pkt->icmp_id != G.myid) in ping4()
288 if (pkt->icmp_type == ICMP_ECHOREPLY) in ping4()
297 struct icmp6_hdr *pkt; in ping6() local
301 pkt = (struct icmp6_hdr *) G.packet; in ping6()
[all …]
Dtraceroute.c505 struct outdata6_t *pkt = (void *) outdata; in send_probe() local
506 pkt->ident6 = ident; in send_probe()
507 pkt->seq6 = htonl(seq); in send_probe()
788 struct outdata6_t *pkt; in packet6_ok() local
790 pkt = (struct outdata6_t *) (up + 1); in packet6_ok()
792 if (pkt->ident6 == ident in packet6_ok()
793 && ntohl(pkt->seq6) == seq in packet6_ok()