Lines Matching refs:ip
48 #include "ip.h"
59 const struct ip *ip, const struct tcphdr *tp,
141 register const struct ip *ip,
145 return nextproto4_cksum(ndo, ip, (const uint8_t *)tp, len, len,
165 register const struct ip *ip;
177 ip = (const struct ip *)bp2;
178 if (IP_V(ip) == 6)
185 ipaddr_string(ndo, &ip->ip_src),
186 ipaddr_string(ndo, &ip->ip_dst)));
205 if (ip->ip_p == IPPROTO_TCP) {
207 ipaddr_string(ndo, &ip->ip_src),
209 ipaddr_string(ndo, &ip->ip_dst),
315 if (UNALIGNED_MEMCMP(&ip->ip_src, &ip->ip_dst, sizeof ip->ip_dst) > 0)
319 UNALIGNED_MEMCPY(&tha.src, &ip->ip_dst, sizeof ip->ip_dst);
320 UNALIGNED_MEMCPY(&tha.dst, &ip->ip_src, sizeof ip->ip_src);
323 UNALIGNED_MEMCPY(&tha.dst, &ip->ip_dst, sizeof ip->ip_dst);
324 UNALIGNED_MEMCPY(&tha.src, &ip->ip_src, sizeof ip->ip_src);
372 if (IP_V(ip) == 4) {
374 sum = tcp_cksum(ndo, ip, tp, length);
384 } else if (IP_V(ip) == 6 && ip6->ip6_plen) {
518 switch (tcp_verify_signature(ndo, ip, tp,
756 nfsreq_print_noaddr(ndo, (const u_char *)rp, fraglen, (const u_char *)ip);
761 nfsreply_print_noaddr(ndo, (const u_char *)rp, fraglen, (const u_char *)ip);
841 const struct ip *ip, const struct tcphdr *tp,
869 if (IP_V(ip) == 4) {
870 MD5_Update(&ctx, (const char *)&ip->ip_src, sizeof(ip->ip_src));
871 MD5_Update(&ctx, (const char *)&ip->ip_dst, sizeof(ip->ip_dst));
873 MD5_Update(&ctx, (const char *)&ip->ip_p, sizeof(ip->ip_p));
874 tlen = EXTRACT_16BITS(&ip->ip_len) - IP_HL(ip) * 4;
877 } else if (IP_V(ip) == 6) {
878 ip6 = (const struct ip6_hdr *)ip;