Lines Matching refs:ip
151 return left.ip() == right.ip();
157 uint32_t ip = ia.ip();
159 (uint8_t)(ip >> 24), (uint8_t)(ip >> 16),
160 (uint8_t)(ip >> 8), (uint8_t)(ip >> 0));
175 return (left.ip() == right.ip()) &&
197 return (left.ip() == right.ip()) && (left.port() == right.port());
215 __tu_cksum(const IpPtr &ip)
217 int tcplen = ip->len() - ip->hlen();
218 int sum = ip_cksum_add(ip->payload(), tcplen, 0);
219 sum = ip_cksum_add(&ip->ip_src, 8, sum); // source and destination
220 sum += htons(ip->ip_p + tcplen);
384 IpPtr ip(ptr);
386 if (ip) {
387 split_point = ip.pstart();
389 TcpPtr tcp(ip);
393 UdpPtr udp(ip);