Lines Matching refs:ip
51 #include <netinet/ip.h>
59 #include <netinet/ip.h>
822 struct ip *ip = mtod (m, struct ip*);
823 struct tcphdr *tcp = (struct tcphdr*) ((long*)ip + ip->ip_hl);
832 * - don't let packets with src ip addr 0 thru
833 * - we flag TCP packets with src ip 0 as an error
836 if(ip->ip_src.s_addr == INADDR_ANY) /* -hm */
840 if(ip->ip_p == IPPROTO_TCP)
854 else if (ip->ip_tos & IPTOS_LOWDELAY)
856 else if (m->m_len < sizeof *ip + sizeof *tcp)
858 else if (ip->ip_p != IPPROTO_TCP)
869 (sp->ipcp.flags & IPCP_VJ) && ip->ip_p == IPPROTO_TCP)
870 switch (sl_compress_tcp(m, ip, sp->pp_comp,