Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:ip

29 #include "ip.h"
63 static int dccp_cksum(const struct ip *ip,
82 memcpy(&phu.ph.src, &ip->ip_src.s_addr, sizeof(u_int32_t));
83 if (IP_HL(ip) == 5)
84 memcpy(&phu.ph.dst, &ip->ip_dst.s_addr, sizeof(u_int32_t));
86 phu.ph.dst = ip_finddst(ip);
214 * @len - lenght of ip packet
219 const struct ip *ip;
230 ip = (struct ip *)data2;
232 if (IP_V(ip) == 6)
262 ipaddr_string(&ip->ip_src), sport,
263 ipaddr_string(&ip->ip_dst), dport);
301 sum = dccp_cksum(ip, dh, len);