Home | History | Annotate | Download | only in iputils

Lines Matching defs:ip

63 #include <netinet/ip.h>
100 static void pr_iph(struct iphdr *ip);
712 * Compose and transmit an ICMP ECHO REQUEST packet. The IP packet
788 struct iphdr *ip;
796 /* Check the IP header */
797 ip = (struct iphdr *)buf;
799 hlen = ip->ihl*4;
800 if (cc < hlen + 8 || ip->ihl < 5) {
806 ttl = ip->ttl;
1284 * Print an IP header with options.
1286 void pr_iph(struct iphdr *ip)
1291 hlen = ip->ihl << 2;
1292 cp = (u_char *)ip + 20; /* point to options */
1296 ip->version, ip->ihl, ip->tos, ip->tot_len, ip->id);
1297 printf(" %1x %04x", ((ip->frag_off) & 0xe000) >> 13,
1298 (ip->frag_off) & 0x1fff);
1299 printf(" %02x %02x %04x", ip->ttl, ip->protocol, ip->check);
1300 printf(" %s ", inet_ntoa(*(struct in_addr *)&ip
1301 printf(" %s ", inet_ntoa(*(struct in_addr *)&ip->daddr));
1376 BPF_STMT(BPF_LDX|BPF_B|BPF_MSH, 0), /* Skip IP header. F..g BSD... Look into ping6. */