Searched refs:tcphlen (Results 1 – 6 of 6) sorted by relevance
277 int iphlen, tcphlen, pktlen; in ng_tcpmss_rcvdata() local328 tcphlen = tcp->th_off << 2; in ng_tcpmss_rcvdata()329 if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen) in ng_tcpmss_rcvdata()333 if (!(tcp_get_flags(tcp) & TH_SYN) || tcphlen == sizeof(struct tcphdr)) in ng_tcpmss_rcvdata()339 M_CHECK(tcphlen - sizeof(struct tcphdr)); in ng_tcpmss_rcvdata()346 if (correct_mss(tcp, tcphlen, priv->stats.maxMSS, in ng_tcpmss_rcvdata()
262 int tcphlen; in icmp_error() local272 tcphlen = th->th_off << 2; in icmp_error()273 if (tcphlen < sizeof(struct tcphdr)) in icmp_error()275 if (ntohs(oip->ip_len) < oiphlen + tcphlen) in icmp_error()277 if (oiphlen + tcphlen > n->m_len && n->m_next == NULL) in icmp_error()279 if (n->m_len < oiphlen + tcphlen && in icmp_error()280 (n = m_pullup(n, oiphlen + tcphlen)) == NULL) in icmp_error()283 icmpelen = max(tcphlen, min(V_icmp_quotelen, in icmp_error()
1395 pktsize = len + buf->tcphlen + iphlen; in irdma_gen1_ieq_update_tcpip_info()1469 buf->tcphlen = tcph->th_off << 2; in irdma_gen1_puda_get_tcpip_info()1470 buf->datalen = pkt_len - iphlen - buf->tcphlen; in irdma_gen1_puda_get_tcpip_info()1471 buf->data = buf->datalen ? buf->tcph + buf->tcphlen : NULL; in irdma_gen1_puda_get_tcpip_info()1472 buf->hdrlen = buf->maclen + iphlen + buf->tcphlen; in irdma_gen1_puda_get_tcpip_info()1509 buf->tcphlen = tcph->th_off << 2; in irdma_puda_get_tcpip_info()1510 buf->datalen = pkt_len - IRDMA_TCP_OFFSET - buf->tcphlen; in irdma_puda_get_tcpip_info()1511 buf->data = buf->datalen ? buf->tcph + buf->tcphlen : NULL; in irdma_puda_get_tcpip_info()1512 buf->hdrlen = IRDMA_TCP_OFFSET + buf->tcphlen; in irdma_puda_get_tcpip_info()
99 u8 tcphlen; /* tcp length in bytes */ member
573 info.tcplen = buf->tcphlen; in irdma_puda_send_buf()1315 txbuf->tcphlen = buf->tcphlen; in irdma_ieq_setup_tx_buf()1319 txbuf->hdrlen = txbuf->tcphlen; in irdma_ieq_setup_tx_buf()
385 sqbuf->tcphlen = sizeof(*tcph) + opts_len; in irdma_form_ah_cm_frame()419 sqbuf->tcphlen = tcph->th_off << 2; in irdma_form_ah_cm_frame()503 sqbuf->tcphlen = sizeof(*tcph) + opts_len; in irdma_form_uda_cm_frame()606 sqbuf->tcphlen = tcph->th_off << 2; in irdma_form_uda_cm_frame()