Searched refs:tcphlen (Results 1 - 2 of 2) sorted by relevance

/freebsd-10.0-release/sys/netgraph/
H A Dng_tcpmss.c272 int iphlen, tcphlen, pktlen; local
323 tcphlen = tcp->th_off << 2;
324 if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen)
328 if (!(tcp->th_flags & TH_SYN) || tcphlen == sizeof(struct tcphdr))
334 M_CHECK(tcphlen - sizeof(struct tcphdr));
341 if (correct_mss(tcp, tcphlen, priv->stats.maxMSS,
/freebsd-10.0-release/sys/netinet/
H A Dip_icmp.c259 int tcphlen; local
268 tcphlen = th->th_off << 2;
269 if (tcphlen < sizeof(struct tcphdr))
271 if (ntohs(oip->ip_len) < oiphlen + tcphlen)
273 if (oiphlen + tcphlen > n->m_len && n->m_next == NULL)
275 if (n->m_len < oiphlen + tcphlen &&
276 ((n = m_pullup(n, oiphlen + tcphlen)) == NULL))
278 icmpelen = max(tcphlen, min(V_icmp_quotelen,

Completed in 95 milliseconds