Lines Matching refs:ip
39 #include <netinet/ip.h>
127 struct ip ip;
166 sf_hdr.caplen = sf_hdr.len = sizeof(ip);
179 /* write out llhdr and ip header */
181 memset(&ip, 0, sizeof(ip));
182 ip.ip_v = IPVERSION;
183 ip.ip_hl = sizeof(ip) >> 2;
185 ip.ip_src = ((struct sockaddr_in *)from)->sin_addr;
187 ip.ip_dst = ((struct sockaddr_in *)my)->sin_addr;
188 ip.ip_p = IPPROTO_UDP;
189 ip.ip_ttl = 1;
190 ip.ip_len = htons(sizeof(ip) + sizeof(uh) + msg->l);
191 if (write(fd, &ip, sizeof(ip)) < sizeof(ip))