Lines Matching refs:packet
241 char packet[DEFDATALEN + MAXIPLEN + MAXICMPLEN]; member
258 pkt = (struct icmp *) G.packet; in ping4()
262 pkt->icmp_cksum = inet_cksum(pkt, sizeof(G.packet)); in ping4()
264 xsendto(pingsock, G.packet, DEFDATALEN + ICMP_MINLEN, &lsa->u.sa, lsa->len); in ping4()
272 c = recvfrom(pingsock, G.packet, sizeof(G.packet), 0, in ping4()
275 c = recv(pingsock, G.packet, sizeof(G.packet), 0); in ping4()
283 struct iphdr *iphdr = (struct iphdr *) G.packet; in ping4()
285 pkt = (struct icmp *) (G.packet + (iphdr->ihl << 2)); /* skip ip hdr */ in ping4()
301 pkt = (struct icmp6_hdr *) G.packet; in ping6()
309 xsendto(pingsock, G.packet, DEFDATALEN + sizeof(struct icmp6_hdr), &lsa->u.sa, lsa->len); in ping6()
317 c = recvfrom(pingsock, G.packet, sizeof(G.packet), 0, in ping6()
320 c = recv(pingsock, G.packet, sizeof(G.packet), 0); in ping6()
729 static int unpack6(char *packet, int sz, struct sockaddr_in6 *from, int hoplimit) in unpack6() argument
738 icmppkt = (struct icmp6_hdr *) packet; in unpack6()