Lines Matching refs:ip
20 #include <netinet/ip.h>
72 ip_t *ip;
81 ip = (ip_t *)calloc(1, 65536);
82 ti = (struct tcpiphdr *)ip;
83 ip->ip_len = sizeof(*ip);
84 IP_HL_A(ip, sizeof(*ip) >> 2);
134 if (resolve(dst, (char *)&ip->ip_dst) == -1)
140 if (resolve(src, (char *)&ip->ip_src) == -1)
147 gwip = ip->ip_dst;
158 printf("Source: %s\n", inet_ntoa(ip->ip_src));
159 printf("Dest: %s\n", inet_ntoa(ip->ip_dst));