• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/traceroute/

Lines Matching refs:ip

35  * traceroute host  - trace the route ip packets follow going to "host".
37 * Attempt to trace the route an ip packet would follow to some
43 * defaults to net.inet.ip.ttl hops & can be changed with the -m flag).
158 * system available from Berkeley: A raw ip socket using proto
159 * IPPROTO_RAW must interpret the data sent as an ip datagram (as
160 * opposed to data to be wrapped in a ip datagram). See the README
171 * udp header (the ip id could be used but there's no way to
172 * interlock with the kernel's assignment of ip id's and, anyway,
174 * code to set the ip id). So, to allow two or more users to
220 #include <netinet/ip.h>
320 struct ip *outip; /* last output ip packet */
323 struct ip *hip = NULL; /* Quoted IP header */
336 int minpacket; /* min ip packet size */
337 int maxpacket = 32 * 1024; /* max ip packet size */
361 int doipcksum = 0; /* don't calculate ip checksums by default */
363 int doipcksum = 1; /* calculate ip checksums by default */
365 int optlen; /* length of ip options */
386 u_short p_cksum(struct ip *, u_short *, int, int);
580 perror("sysctl(net.inet.ip.ttl)");
678 * set the ip source address of the outbound
729 Fprintf(stderr, "%s: Warning: ip checksums disabled\n", prog);
777 outip = (struct ip *)malloc((unsigned)packlen);
858 cp = "ip";
1077 register struct ip *ip;
1136 ip = (struct ip *)packet;
1137 if (ip->ip_ttl <= 1)
1151 ip = (struct ip *)packet;
1152 if (ip->ip_ttl <= 1)
1408 register struct ip *ip;
1410 ip = (struct ip *) buf;
1411 hlen = ip->ip_hl << 2;
1459 inet_ntoa(ip->ip_dst), type, pr_type(type), icp->icmp_code);
1706 register struct ip *ip;
1710 ip = (struct ip *) buf;
1711 hlen = ip->ip_hl << 2;
1725 Printf(" %d bytes to %s", cc, inet_ntoa (ip->ip_dst));
1732 p_cksum(struct ip *ip, u_short *data, int len, int cov)
1737 ipo.ih_pr = ip->ip_p;
1739 ipo.ih_src = ip->ip_src;
1740 ipo.ih_dst = ip->ip_dst;
1742 sum[1] = in_cksum((u_short*)&ipo, sizeof(ipo)); /* pseudo ip hdr cksum */