Searched refs:tcphdr (Results 101 - 125 of 132) sorted by relevance

123456

/freebsd-12-stable/sys/dev/oce/
H A Doce_if.c1317 struct tcphdr *th;
1346 th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
1356 th = (struct tcphdr *)((caddr_t)ip6 + sizeof(struct ip6_hdr));
1533 struct tcphdr *tcp_hdr = NULL;
1544 tcp_hdr = (struct tcphdr *)((char*)ip4_hdr + sizeof(struct ip));
1551 tcp_hdr = (struct tcphdr *)((char*)ip6 + sizeof(struct ip6_hdr));
1562 p = (uint32_t *)((char*)tcp_hdr + sizeof(struct tcphdr) + 2);
/freebsd-12-stable/sys/dev/vnic/
H A Dnicvf_queues.c1753 struct tcphdr *th;
1822 if (mbuf->m_len < (poff + sizeof(struct tcphdr))) {
1823 mbuf = m_pullup(mbuf, poff + sizeof(struct tcphdr));
1862 th = (struct tcphdr *)((caddr_t)(mbuf->m_data + poff));
/freebsd-12-stable/sys/dev/qlxgb/
H A Dqla_hw.h730 sizeof (struct ip) + sizeof (struct tcphdr) + 16)
/freebsd-12-stable/sys/dev/mxge/
H A Dif_mxge.c1811 sizeof(struct tcphdr))) {
1813 sizeof(struct tcphdr), ss->scratch);
1816 pi->tcp = (struct tcphdr *)((char *)pi->ip + pi->ip_hlen);
1839 sizeof(struct tcphdr))) {
1841 sizeof(struct tcphdr), ss->scratch);
1844 pi->tcp = (struct tcphdr *)((char *)pi->ip6 + pi->ip_hlen);
1886 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
1903 m_copyback(m, offsetof(struct tcphdr, th_sum) +
/freebsd-12-stable/sys/net/
H A Diflib.c3192 struct tcphdr *th = NULL;
3207 th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
3220 th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
3225 th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
3238 th = (struct tcphdr *)((caddr_t)ip + pi->ipi_ip_hlen);
3270 struct tcphdr *th;
3278 th = (struct tcphdr *)((caddr_t)ip6 + pi->ipi_ip_hlen);
3287 if (__predict_false(m->m_len < pi->ipi_ehdrlen + sizeof(struct ip6_hdr) + sizeof(struct tcphdr))) {
3289 if (__predict_false((m = m_pullup(m, pi->ipi_ehdrlen + sizeof(struct ip6_hdr) + sizeof(struct tcphdr))) == NULL))
/freebsd-12-stable/sys/dev/fxp/
H A Dif_fxp.c1415 struct tcphdr *tcp;
1489 m = m_pullup(m, poff + sizeof(struct tcphdr));
1494 tcp = (struct tcphdr *)(mtod(m, char *) + poff);
1506 tcp = (struct tcphdr *)(mtod(m, char *) + poff);
1839 if (pktlen < (hlen + sizeof(struct tcphdr)))
/freebsd-12-stable/sys/dev/xen/netback/
H A Dnetback.c2171 struct tcphdr *th = (struct tcphdr*)(iph + 1);
/freebsd-12-stable/sys/netinet/
H A Dtcp_log_buf.c1333 tcp_log_event_(struct tcpcb *tp, struct tcphdr *th, struct sockbuf *rxbuf,
1519 optlen = (th->th_off << 2) - sizeof (struct tcphdr);
H A Dtcp_sack.c787 tcp_sack_partialack(struct tcpcb *tp, struct tcphdr *th)
/freebsd-12-stable/sys/netpfil/ipfw/nat64/
H A Dnat64lsn.c573 len += sizeof(struct tcphdr);
593 *port = ntohs(L3HDR(ip, struct tcphdr *)->th_dport);
/freebsd-12-stable/sys/dev/age/
H A Dif_age.c1497 struct tcphdr *tcp;
1562 m = m_pullup(m, poff + sizeof(struct tcphdr));
1567 tcp = (struct tcphdr *)(mtod(m, char *) + poff);
1588 tcp = (struct tcphdr *)(mtod(m, char *) + poff);
/freebsd-12-stable/sys/contrib/ipfilter/netinet/
H A Dip_compat.h664 typedef struct tcphdr tcphdr_t;
/freebsd-12-stable/sys/dev/hyperv/netvsc/
H A Dif_hn.c765 struct tcphdr *th;
897 const struct tcphdr *th;
4839 const struct tcphdr *th;
4884 if (iplen < iphlen + sizeof(struct tcphdr))
4886 if (m->m_len < hoff + iphlen + sizeof(struct tcphdr))
4888 th = (const struct tcphdr *)((const uint8_t *)ip + iphlen);
4890 if (thoff < sizeof(struct tcphdr) || thoff + iphlen > iplen)
/freebsd-12-stable/sys/dev/msk/
H A Dif_msk.c2651 struct tcphdr *tcp;
2689 m = m_pullup(m, offset + sizeof(struct tcphdr));
2694 tcp = (struct tcphdr *)(mtod(m, char *) + offset);
2714 m = m_pullup(m, offset + sizeof(struct tcphdr));
3151 if (pktlen < (hlen + sizeof(struct tcphdr)))
/freebsd-12-stable/sys/dev/cxgbe/tom/
H A Dt4_cpl_io.c335 tp->t_maxseg -= sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
337 tp->t_maxseg -= sizeof(struct ip) + sizeof(struct tcphdr);
/freebsd-12-stable/sys/dev/qlxge/
H A Dqls_hw.c545 struct tcphdr *th;
587 th = (struct tcphdr *)(ip + 1);
/freebsd-12-stable/sys/dev/qlxgbe/
H A Dql_hw.h1534 sizeof (struct ip6_hdr) + sizeof (struct tcphdr) + 16)
/freebsd-12-stable/sys/dev/alc/
H A Dif_alc.c2710 struct tcphdr *tcp;
2774 m = m_pullup(m, poff + sizeof(struct tcphdr));
2779 tcp = (struct tcphdr *)(mtod(m, char *) + poff);
2799 tcp = (struct tcphdr *)(mtod(m, char *) + poff);
/freebsd-12-stable/sys/dev/jme/
H A Dif_jme.c1710 struct tcphdr *tcp;
1746 m = m_pullup(m, poff + sizeof(struct tcphdr));
1756 tcp = (struct tcphdr *)(mtod(m, char *) + poff);
/freebsd-12-stable/sys/dev/al_eth/
H A Dal_eth.c1211 struct tcphdr *th = NULL;
1256 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
1270 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen);
/freebsd-12-stable/sys/dev/ale/
H A Dif_ale.c1613 struct tcphdr *tcp;
1704 m = m_pullup(m, poff + sizeof(struct tcphdr));
1710 tcp = (struct tcphdr *)(mtod(m, char *) + poff);
/freebsd-12-stable/sys/dev/cxgb/
H A Dcxgb_sge.c1470 struct tcphdr *tcp;
1511 tcp = (struct tcphdr *)(ip + 1);
1521 tcp = (struct tcphdr *)(ip6 + 1);
/freebsd-12-stable/sys/dev/bce/
H A Dif_bce.c7256 struct tcphdr *th;
7302 sizeof(struct tcphdr));
7310 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
7354 sizeof(struct tcphdr)) >> 2) << 8);
9731 struct tcphdr *th;
9765 th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
/freebsd-12-stable/sys/dev/bge/
H A Dif_bge.c5150 struct tcphdr *tcp;
5168 m = m_pullup(m, poff + sizeof(struct tcphdr));
5171 tcp = (struct tcphdr *)(mtod(m, char *) + poff);
5184 tcp = (struct tcphdr *)(mtod(m, char *) + poff);
/freebsd-12-stable/sys/dev/hme/
H A Dif_hme.c1251 if (pktlen < (hlen + sizeof(struct tcphdr)))

Completed in 594 milliseconds

123456