Lines Matching refs:ip_hdr

128 tcp_lro_matching_tuple(struct ip* ip_hdr, struct tcphdr *tcp_hdr, int *hash, 
136 *hash = LRO_HASH(ip_hdr->ip_src.s_addr, ip_hdr->ip_dst.s_addr,
146 payload_len = ip_hdr->ip_len - off;
150 if ((flow->lr_faddr.s_addr == ip_hdr->ip_src.s_addr) &&
151 (flow->lr_laddr.s_addr == ip_hdr->ip_dst.s_addr) &&
203 tcp_lro_init_flow(int flow_id, struct ip* ip_hdr, struct tcphdr *tcp_hdr,
211 flow->lr_faddr.s_addr = ip_hdr->ip_src.s_addr;
212 flow->lr_laddr.s_addr = ip_hdr->ip_dst.s_addr;
340 tcp_lro_insert_flow(struct mbuf *lro_mb, struct ip *ip_hdr,
395 tcp_lro_init_flow(candidate_flow, ip_hdr, tcp_hdr, hash,
403 tcp_lro_process_pkt(struct mbuf *lro_mb, struct ip *ip_hdr,
433 (struct ipovly*)ip_hdr, tcp_hdr)) == NULL) {
448 payload_len = ip_hdr->ip_len - off;
493 ecn = ip_hdr->ip_tos & IPTOS_ECN_MASK;
506 retval = tcp_lro_matching_tuple(ip_hdr, tcp_hdr, &hash, &flow_id);
705 struct ip *ip_hdr;
726 ip_hdr = mtod(m, struct ip*);
729 if (ip_hdr->ip_p != IPPROTO_TCP) {
744 tcp_hdr = (struct tcphdr *)((caddr_t)ip_hdr + hlen);
745 tlen = ip_hdr->ip_len ; //ignore IP header bytes len
757 return (tcp_lro_process_pkt(m, ip_hdr, tcp_hdr, hlen + off));
763 struct ip* ip_hdr = mtod(m, struct ip*);
767 ip_hdr->ip_len);
770 ip_proto_dispatch_in_wrapper(m, ip_hdr->ip_hl << 2, ip_hdr->ip_p);
849 tcp_start_coalescing(struct ip *ip_hdr, struct tcphdr *tcp_hdr, int tlen)
856 hash = LRO_HASH(ip_hdr->ip_src.s_addr, ip_hdr->ip_dst.s_addr,
865 if ((lf->lr_faddr.s_addr == ip_hdr->ip_src.s_addr) &&
866 (lf->lr_laddr.s_addr == ip_hdr->ip_dst.s_addr) &&
882 tcp_lro_insert_flow(NULL, ip_hdr, tcp_hdr, tlen, 0, hash,
891 __func__, ip_hdr->ip_src.s_addr, ip_hdr->ip_dst.s_addr,