Searched refs:tcphlen (Results 1 – 2 of 2) sorted by relevance
273 int iphlen, tcphlen, pktlen; in ng_tcpmss_rcvdata() local324 tcphlen = tcp->th_off << 2; in ng_tcpmss_rcvdata()325 if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen) in ng_tcpmss_rcvdata()329 if (!(tcp->th_flags & TH_SYN) || tcphlen == sizeof(struct tcphdr)) in ng_tcpmss_rcvdata()335 M_CHECK(tcphlen - sizeof(struct tcphdr)); in ng_tcpmss_rcvdata()342 if (correct_mss(tcp, tcphlen, priv->stats.maxMSS, in ng_tcpmss_rcvdata()
256 int tcphlen; in icmp_error() local266 tcphlen = th->th_off << 2; in icmp_error()267 if (tcphlen < sizeof(struct tcphdr)) in icmp_error()269 if (ntohs(oip->ip_len) < oiphlen + tcphlen) in icmp_error()271 if (oiphlen + tcphlen > n->m_len && n->m_next == NULL) in icmp_error()273 if (n->m_len < oiphlen + tcphlen && in icmp_error()274 (n = m_pullup(n, oiphlen + tcphlen)) == NULL) in icmp_error()277 icmpelen = max(tcphlen, min(V_icmp_quotelen, in icmp_error()