Lines Matching refs:ip
96 #include <netinet/ip.h>
710 siftr_findinpcb(int ipver, struct ip *ip, struct mbuf *m, uint16_t sport,
720 in_pcblookup(&V_tcbinfo, ip->ip_src, sport, ip->ip_dst,
725 &((struct ip6_hdr *)ip)->ip6_src, sport,
726 &((struct ip6_hdr *)ip)->ip6_dst, dport, INPLOOKUP_RLOCKPCB,
735 in_pcblookup(&V_tcbinfo, ip->ip_dst, dport, ip->ip_src,
740 &((struct ip6_hdr *)ip)->ip6_dst, dport,
741 &((struct ip6_hdr *)ip)->ip6_src, sport, INPLOOKUP_RLOCKPCB,
839 struct ip *ip;
854 ip = mtod(*m, struct ip *);
857 if (ip->ip_p != IPPROTO_TCP)
875 * in the IP packet. ip->ip_hl gives the ip header length
878 ip_hl = (ip->ip_hl << 2);
879 th = (struct tcphdr *)((caddr_t)ip + ip_hl);
887 inp = siftr_findinpcb(INP_IPV4, ip, *m, th->th_sport,
980 * in_cksum_skip(at, ip->ip_len - offset, offset)
982 * in_cksum_skip(at, ip->ip_len, offset)
983 * which means read "ip->ip_len - offset" bytes from
987 th->th_sum = in_cksum_skip(*m, ntohs(ip->ip_len),
1064 * in the ipv6 packet. ip->ip_hl gives the ip header length
1075 inp = siftr_findinpcb(INP_IPV6, (struct ip *)ip6, *m,