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

123456

/freebsd-13-stable/sys/netgraph/netflow/
H A Dng_netflow.c800 M_CHECK(sizeof(struct tcphdr));
846 M_CHECK(sizeof(struct tcphdr));
/freebsd-13-stable/sys/dev/qlxgbe/
H A Dql_isr.c213 struct tcphdr *th;
296 th = (struct tcphdr *)(mpf->m_data + sgc->l4_offset);
H A Dql_hw.h1523 sizeof (struct ip6_hdr) + sizeof (struct tcphdr) + 16)
/freebsd-13-stable/sys/dev/oce/
H A Doce_if.c1284 struct tcphdr *th;
1313 th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
1323 th = (struct tcphdr *)((caddr_t)ip6 + sizeof(struct ip6_hdr));
1477 struct tcphdr *tcp_hdr = NULL;
1488 tcp_hdr = (struct tcphdr *)((char*)ip4_hdr + sizeof(struct ip));
1495 tcp_hdr = (struct tcphdr *)((char*)ip6 + sizeof(struct ip6_hdr));
1506 p = (uint32_t *)((char*)tcp_hdr + sizeof(struct tcphdr) + 2);
/freebsd-13-stable/sys/dev/virtio/network/
H A Dif_vtnet.c2398 struct tcphdr *tcp, tcphdr; local
2402 if (__predict_false(m->m_len < offset + sizeof(struct tcphdr))) {
2403 m_copydata(m, offset, sizeof(struct tcphdr), (caddr_t) &tcphdr);
2404 tcp = &tcphdr;
2406 tcp = (struct tcphdr *)(m->m_data + offset);
/freebsd-13-stable/sys/dev/vnic/
H A Dnicvf_queues.c1751 struct tcphdr *th;
1820 if (mbuf->m_len < (poff + sizeof(struct tcphdr))) {
1821 mbuf = m_pullup(mbuf, poff + sizeof(struct tcphdr));
1860 th = (struct tcphdr *)((caddr_t)(mbuf->m_data + poff));
/freebsd-13-stable/sys/dev/qlxgb/
H A Dqla_hw.h724 sizeof (struct ip) + sizeof (struct tcphdr) + 16)
/freebsd-13-stable/sys/netinet/tcp_stacks/
H A Dtcp_bbr.h738 int32_t(*r_substate) (struct mbuf *, struct tcphdr *,
/freebsd-13-stable/sys/dev/mxge/
H A Dif_mxge.c1768 sizeof(struct tcphdr))) {
1770 sizeof(struct tcphdr), ss->scratch);
1773 pi->tcp = (struct tcphdr *)((char *)pi->ip + pi->ip_hlen);
1796 sizeof(struct tcphdr))) {
1798 sizeof(struct tcphdr), ss->scratch);
1801 pi->tcp = (struct tcphdr *)((char *)pi->ip6 + pi->ip_hlen);
1843 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
1860 m_copyback(m, offsetof(struct tcphdr, th_sum) +
/freebsd-13-stable/sys/net/
H A Diflib.c3191 struct tcphdr *th = NULL;
3206 th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
3219 th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
3224 th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
3237 th = (struct tcphdr *)((caddr_t)ip + pi->ipi_ip_hlen);
3269 struct tcphdr *th;
3277 th = (struct tcphdr *)((caddr_t)ip6 + pi->ipi_ip_hlen);
3286 if (__predict_false(m->m_len < pi->ipi_ehdrlen + sizeof(struct ip6_hdr) + sizeof(struct tcphdr))) {
3288 if (__predict_false((m = m_pullup(m, pi->ipi_ehdrlen + sizeof(struct ip6_hdr) + sizeof(struct tcphdr))) == NULL))
/freebsd-13-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-13-stable/sys/dev/xen/netback/
H A Dnetback.c2164 struct tcphdr *th = (struct tcphdr*)(iph + 1);
/freebsd-13-stable/sys/netinet/
H A Dtcp_log_buf.c1520 tcp_log_event_(struct tcpcb *tp, struct tcphdr *th, struct sockbuf *rxbuf,
1718 optlen = (th->th_off << 2) - sizeof (struct tcphdr);
H A Dtcp_sack.c834 tcp_sack_partialack(struct tcpcb *tp, struct tcphdr *th)
/freebsd-13-stable/sys/netpfil/ipfw/nat64/
H A Dnat64lsn.c572 len += sizeof(struct tcphdr);
592 *port = ntohs(L3HDR(ip, struct tcphdr *)->th_dport);
/freebsd-13-stable/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_hw_tls.c680 const struct tcphdr *th;
H A Den.h1102 int mlx5e_get_full_header_size(const struct mbuf *, const struct tcphdr **);
/freebsd-13-stable/sys/dev/age/
H A Dif_age.c1495 struct tcphdr *tcp;
1560 m = m_pullup(m, poff + sizeof(struct tcphdr));
1565 tcp = (struct tcphdr *)(mtod(m, char *) + poff);
1586 tcp = (struct tcphdr *)(mtod(m, char *) + poff);
/freebsd-13-stable/sys/contrib/ipfilter/netinet/
H A Dip_compat.h664 typedef struct tcphdr tcphdr_t;
/freebsd-13-stable/sys/dev/hyperv/netvsc/
H A Dif_hn.c769 struct tcphdr *th;
901 const struct tcphdr *th;
4843 const struct tcphdr *th;
4888 if (iplen < iphlen + sizeof(struct tcphdr))
4890 if (m->m_len < hoff + iphlen + sizeof(struct tcphdr))
4892 th = (const struct tcphdr *)((const uint8_t *)ip + iphlen);
4894 if (thoff < sizeof(struct tcphdr) || thoff + iphlen > iplen)
/freebsd-13-stable/sys/dev/msk/
H A Dif_msk.c2654 struct tcphdr *tcp;
2692 m = m_pullup(m, offset + sizeof(struct tcphdr));
2697 tcp = (struct tcphdr *)(mtod(m, char *) + offset);
2717 m = m_pullup(m, offset + sizeof(struct tcphdr));
3154 if (pktlen < (hlen + sizeof(struct tcphdr)))
/freebsd-13-stable/sys/dev/cxgbe/tom/
H A Dt4_cpl_io.c315 tp->t_maxseg -= sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
317 tp->t_maxseg -= sizeof(struct ip) + sizeof(struct tcphdr);
/freebsd-13-stable/sys/dev/qlxge/
H A Dqls_hw.c537 struct tcphdr *th;
579 th = (struct tcphdr *)(ip + 1);
/freebsd-13-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-13-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);

Completed in 265 milliseconds

123456