Lines Matching defs:tcp_hdr

128 tcp_lro_matching_tuple(struct ip* ip_hdr, struct tcphdr *tcp_hdr, int *hash, 
137 tcp_hdr->th_sport, tcp_hdr->th_dport, (TCP_LRO_FLOW_MAP - 1));
144 seqnum = tcp_hdr->th_seq;
145 off = tcp_hdr->th_off << 2;
152 (flow->lr_fport == tcp_hdr->th_sport) &&
153 (flow->lr_lport == tcp_hdr->th_dport)) {
181 if (SEQ_GT(tcp_hdr->th_ack, flow->lr_tcphdr->th_ack)) {
184 __func__, tcp_hdr->th_ack,
203 tcp_lro_init_flow(int flow_id, struct ip* ip_hdr, struct tcphdr *tcp_hdr,
213 flow->lr_fport = tcp_hdr->th_sport;
214 flow->lr_lport = tcp_hdr->th_dport;
217 flow->lr_seq = ntohl(tcp_hdr->th_seq) + payload_len;
341 struct tcphdr *tcp_hdr, int payload_len,
395 tcp_lro_init_flow(candidate_flow, ip_hdr, tcp_hdr, hash,
397 tcp_lro_coalesce(candidate_flow, lro_mb, tcp_hdr, payload_len,
404 struct tcphdr *tcp_hdr, int drop_hdrlen)
433 (struct ipovly*)ip_hdr, tcp_hdr)) == NULL) {
446 off = tcp_hdr->th_off << 2;
449 optp = (u_char *)(tcp_hdr + 1);
461 (tcp_hdr->th_flags & TH_SYN) == 0) {
478 thflags = tcp_hdr->th_flags;
506 retval = tcp_lro_matching_tuple(ip_hdr, tcp_hdr, &hash, &flow_id);
517 tcp_lro_coalesce(flow_id, lro_mb, tcp_hdr, payload_len,
527 ntohl(tcp_hdr->th_seq));
536 lro_flow_list[flow_id].lr_seq = ntohl(tcp_hdr->th_seq) +
707 struct tcphdr * tcp_hdr = NULL;
744 tcp_hdr = (struct tcphdr *)((caddr_t)ip_hdr + hlen);
748 off = tcp_hdr->th_off << 2;
757 return (tcp_lro_process_pkt(m, ip_hdr, tcp_hdr, hlen + off));
849 tcp_start_coalescing(struct ip *ip_hdr, struct tcphdr *tcp_hdr, int tlen)
857 tcp_hdr->th_sport, tcp_hdr->th_dport,
867 (lf->lr_fport == tcp_hdr->th_sport) &&
868 (lf->lr_lport == tcp_hdr->th_dport)) {
870 (lf->lr_seq != (tcp_hdr->th_seq + tlen))) {
871 lf->lr_seq = tcp_hdr->th_seq + tlen;
879 HTONL(tcp_hdr->th_seq);
880 HTONL(tcp_hdr->th_ack);
882 tcp_lro_insert_flow(NULL, ip_hdr, tcp_hdr, tlen, 0, hash,
887 NTOHL(tcp_hdr->th_seq);
888 NTOHL(tcp_hdr->th_ack);
892 tcp_hdr->th_sport, tcp_hdr->th_dport, tcp_hdr->th_seq);