Lines Matching defs:ip4
165 struct ip *ip4;
167 ip4 = (struct ip *)l3hdr;
169 cs = ip4->ip_len;
171 cs = in_addword(ntohs(ip4->ip_len) - sizeof(*ip4),
173 cs = in_pseudo(ip4->ip_src.s_addr, ip4->ip_dst.s_addr,
223 struct ip *ip4;
229 ip4 = le->le_ip4;
232 c = ~ip4->ip_sum;
234 c = ~ip4->ip_len;
239 ip4->ip_sum = ~c;
241 ip4->ip_sum = TCP_LRO_INVALID_CSUM;
243 ip4->ip_len = p_len;
244 th = (struct tcphdr *)(ip4 + 1);
310 tcp_lro_rx_ipv4(struct lro_ctrl *lc, struct mbuf *m, struct ip *ip4,
316 if (ip4->ip_p != IPPROTO_TCP)
320 if ((ip4->ip_hl << 2) != sizeof (*ip4))
324 if (ip4->ip_off & htons(IP_MF|IP_OFFMASK))
335 csum = in_cksum_hdr(ip4);
343 *th = (struct tcphdr *)(ip4 + 1);
358 struct ip *ip4 = NULL; /* Keep compiler happy. */
401 l3hdr = ip4 = (struct ip *)(eh + 1);
402 error = tcp_lro_rx_ipv4(lc, m, ip4, &th);
405 ip_len = ntohs(ip4->ip_len);
406 tcp_data_len = ip_len - sizeof(*ip4);
477 if (le->source_ip4 != ip4->ip_src.s_addr ||
478 le->dest_ip4 != ip4->ip_dst.s_addr)
573 le->le_ip4 = ip4;
574 le->source_ip4 = ip4->ip_src.s_addr;
575 le->dest_ip4 = ip4->ip_dst.s_addr;