Lines Matching defs:ip4
224 struct ip *ip4;
226 ip4 = (struct ip *)l3hdr;
228 cs = ip4->ip_len;
230 cs = in_addword(ntohs(ip4->ip_len) - sizeof(*ip4),
232 cs = in_pseudo(ip4->ip_src.s_addr, ip4->ip_dst.s_addr,
312 struct ip *ip4;
318 ip4 = le->le_ip4;
321 c = ~ip4->ip_sum;
323 c = ~ip4->ip_len;
328 ip4->ip_sum = ~c;
330 ip4->ip_sum = TCP_LRO_INVALID_CSUM;
332 ip4->ip_len = p_len;
333 th = (struct tcphdr *)(ip4 + 1);
535 tcp_lro_rx_ipv4(struct lro_ctrl *lc, struct mbuf *m, struct ip *ip4,
541 if (ip4->ip_p != IPPROTO_TCP)
545 if ((ip4->ip_hl << 2) != sizeof (*ip4))
549 if (ip4->ip_off & htons(IP_MF|IP_OFFMASK))
560 csum = in_cksum_hdr(ip4);
568 *th = (struct tcphdr *)(ip4 + 1);
583 struct ip *ip4 = NULL; /* Keep compiler happy. */
627 l3hdr = ip4 = (struct ip *)(eh + 1);
628 error = tcp_lro_rx_ipv4(lc, m, ip4, &th);
631 ip_len = ntohs(ip4->ip_len);
632 tcp_data_len = ip_len - sizeof(*ip4);
715 if (le->source_ip4 != ip4->ip_src.s_addr ||
716 le->dest_ip4 != ip4->ip_dst.s_addr)
846 le->le_ip4 = ip4;
847 le->source_ip4 = ip4->ip_src.s_addr;
848 le->dest_ip4 = ip4->ip_dst.s_addr;