Lines Matching refs:ip
102 #include <netinet/ip.h>
457 /* Trust ip packets verification on host side. */
461 "Trust ip packet verification on host side, "
764 struct ip *ip;
767 PULLUP_HDR(m_head, ehlen + sizeof(*ip));
768 ip = mtodo(m_head, ehlen);
769 iphlen = ip->ip_hl << 2;
775 ip->ip_len = 0;
776 ip->ip_sum = 0;
777 th->th_sum = in_pseudo(ip->ip_src.s_addr,
778 ip->ip_dst.s_addr, htons(IPPROTO_TCP));
825 const struct ip *ip;
828 PULLUP_HDR(m_head, ehlen + sizeof(*ip));
829 ip = mtodo(m_head, ehlen);
830 iphlen = ip->ip_hl << 2;
843 (ntohs(ip->ip_off) & IP_DF) == 0) {
4797 const struct ip *ip;
4802 len = hoff + sizeof(struct ip);
4812 ip = mtodo(m, hoff);
4815 iphlen = ip->ip_hl << 2;
4816 if (iphlen < sizeof(struct ip)) /* minimum header length */
4823 iplen = ntohs(ip->ip_len);
4835 if (ntohs(ip->ip_off) & (IP_OFFMASK | IP_MF))
4842 switch (ip->ip_p) {
4848 th = (const struct tcphdr *)((const uint8_t *)ip + iphlen);
4866 return ip->ip_p;
5070 "Trust ip packet verification on host side, "