Lines Matching refs:ip
24 #include "ip.h"
200 static int dccp_cksum(netdissect_options *ndo, const struct ip *ip,
203 return nextproto4_cksum(ndo, ip, (const uint8_t *)(const void *)dh, len,
266 * @len - lenght of ip packet
272 const struct ip *ip;
282 ip = (const struct ip *)data2;
283 if (IP_V(ip) == 6)
319 ipaddr_string(ndo, &ip->ip_src), sport,
320 ipaddr_string(ndo, &ip->ip_dst), dport));
345 if (IP_V(ip) == 4)
346 sum = dccp_cksum(ndo, ip, dh, len);
347 else if (IP_V(ip) == 6)