Lines Matching defs:ip
292 struct ip *ip, *save_ip;
359 ip = mtod(m, struct ip *);
361 /* ip_input() subtracts iphlen from ip::ip_len */
362 AssertStmt((ip->ip_len + iphlen == m_length(m, NULL)), goto drop);
363 if (RT_UNLIKELY(ip->ip_len < sizeof(struct tcphdr)))
380 save_ip = (struct ip *)ohdr;
389 if (iphlen > sizeof(struct ip))
392 iphlen = sizeof(struct ip);
398 tlen = ((struct ip *)ti)->ip_len;
401 len = sizeof(struct ip) + tlen;
543 so->so_iptos = ((struct ip *)ti)->ip_tos;
811 *ip = *save_ip;
1779 struct ip *oip;
1786 oip = (struct ip *)so->so_ohdr;