/freebsd-12-stable/usr.sbin/traceroute6/ |
H A D | traceroute6.c | 678 minlen = sizeof(struct tcphdr); 1063 struct tcphdr *tcp; 1156 tcp = (struct tcphdr *)outpacket; 1348 struct tcphdr *tcp; 1400 tcp = (struct tcphdr *)up;
|
/freebsd-12-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_dynamic.c | 552 const struct ipfw_flow_id *, const struct tcphdr *, int); 931 const struct tcphdr *tcp, int dir) 2376 struct tcphdr *tcp; 2393 tcp->th_off = sizeof(struct tcphdr) >> 2; 2398 htons(sizeof(struct tcphdr) + IPPROTO_TCP)); 2400 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); 2410 m = dyn_mgethdr(sizeof(struct ip) + sizeof(struct tcphdr), 2426 m = dyn_mgethdr(sizeof(struct ip) + sizeof(struct tcphdr), 2485 struct tcphdr *tcp; 2490 ip6->ip6_plen = htons(sizeof(struct tcphdr)); [all...] |
H A D | dn_sched_fq_pie.c | 793 struct tcphdr *th; 813 th = (struct tcphdr *)(ip6 + 1); 840 th = (struct tcphdr *)(ip + 1);
|
/freebsd-12-stable/sys/dev/netmap/ |
H A D | if_ptnet.c | 1402 struct tcphdr *tcp, tcphdr; local 1404 if (__predict_false(m->m_len < offset + sizeof(struct tcphdr))) { 1405 m_copydata(m, offset, sizeof(struct tcphdr), (caddr_t) &tcphdr); 1406 tcp = &tcphdr; 1408 tcp = (struct tcphdr *)(m->m_data + offset); 1538 case offsetof(struct tcphdr, th_sum): 1585 if (__predict_false(m->m_len < offset + sizeof(struct tcphdr)))
|
/freebsd-12-stable/sys/dev/cxgbe/tom/ |
H A D | t4_listen.c | 716 struct tcphdr *th; 1004 struct in_conninfo *inc, struct tcphdr *th, uint8_t *iptos) 1010 const struct tcphdr *tcp; 1167 struct tcphdr th; 1379 struct tcphdr *th, struct tcpopt *to) 1414 struct tcphdr th;
|
H A D | t4_tom.c | 898 mtu = mss + sizeof(struct ip6_hdr) + sizeof(struct tcphdr); 900 mtu = mss + sizeof(struct ip) + sizeof(struct tcphdr); 1448 struct tcphdr *th; 1453 sizeof(struct tcphdr); 1490 ip6->ip6_plen = htons(sizeof(struct tcphdr)); 1507 ip->ip_len = htons(sizeof(struct ip) + sizeof(struct tcphdr));
|
/freebsd-12-stable/sys/dev/qlxgb/ |
H A D | qla_hw.c | 720 struct tcphdr *th = NULL; 742 sizeof(struct tcphdr); 758 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); 778 if (tcp_hlen > sizeof(struct tcphdr)) { 780 (tcp_hlen - sizeof(struct tcphdr)), 791 if ((tcp_hlen - sizeof(struct tcphdr)) != 10)
|
/freebsd-12-stable/sys/dev/xen/netback/ |
H A D | netback_unit_tests.c | 2314 struct tcphdr *tcp; 2322 tcp = (struct tcphdr*)(iph + 1); 2363 sizeof(struct tcphdr) + tcp_options_len + payload_len; 2367 struct tcphdr *tcp; 2376 tcp = (struct tcphdr*)(iph + 1); 2404 sizeof(struct tcphdr) + tcp_options_len + payload_len; 2408 struct tcphdr *tcp; 2420 tcp = (struct tcphdr*)(iph + 1);
|
/freebsd-12-stable/sys/contrib/ipfilter/netinet/ |
H A D | ip_fil_freebsd.c | 350 struct tcphdr *tcp, *tcp2; 397 tcp2 = (struct tcphdr *)((char *)ip + hlen); 421 ip6->ip6_plen = htons(sizeof(struct tcphdr)); 432 ip->ip_len = htons(sizeof(struct tcphdr));
|
/freebsd-12-stable/sys/netgraph/netflow/ |
H A D | netflow.c | 737 struct tcphdr *tcp; 739 tcp = (struct tcphdr *)((caddr_t )ip + hlen); 851 struct tcphdr *tcp; 853 tcp = (struct tcphdr *)upper_ptr;
|
H A D | ng_netflow.c | 795 M_CHECK(sizeof(struct tcphdr)); 841 M_CHECK(sizeof(struct tcphdr));
|
/freebsd-12-stable/sys/netinet/ |
H A D | siftr.c | 840 struct tcphdr *th; 874 * Create a tcphdr struct starting at the correct offset 879 th = (struct tcphdr *)((caddr_t)ip + ip_hl); 1022 struct tcphdr *th; 1063 * Create a tcphdr struct starting at the correct offset 1067 th = (struct tcphdr *)((caddr_t)ip6 + ip6_hl);
|
H A D | tcp_reass.c | 324 struct mbuf *m, struct tcphdr *th, int tlen, 349 tcp_reass_prepend(struct tcpcb *tp, struct tseg_qent *first, struct mbuf *m, struct tcphdr *th, 526 tcp_reass(struct tcpcb *tp, struct tcphdr *th, tcp_seq *seq_start,
|
/freebsd-12-stable/sys/netgraph/ |
H A D | ng_nat.c | 855 struct tcphdr *th = (struct tcphdr *)((caddr_t)ip + 889 m->m_pkthdr.csum_data = offsetof(struct tcphdr,
|
/freebsd-12-stable/contrib/traceroute/ |
H A D | traceroute.c | 457 sizeof(struct tcphdr), 1545 struct tcphdr *const tcp = (struct tcphdr *) outp; 1562 struct tcphdr *const tcp = (struct tcphdr *) data;
|
/freebsd-12-stable/sys/netpfil/pf/ |
H A D | pf.c | 238 struct tcphdr *, struct pf_state_peer *); 2394 struct tcphdr *th, struct pf_state_peer *dst) 2466 struct tcphdr *th; 2474 tlen = sizeof(struct tcphdr); 2540 th = (struct tcphdr *)((caddr_t)h + sizeof(struct ip)); 2553 th = (struct tcphdr *)((caddr_t)h6 + sizeof(struct ip6_hdr)); 2612 struct pf_state_key *sk, int off, struct mbuf *m, struct tcphdr *th, 3194 if (hlen <= sizeof(struct tcphdr)) 3198 opt = hdr + sizeof(struct tcphdr); 3199 hlen -= sizeof(struct tcphdr); [all...] |
/freebsd-12-stable/sys/dev/qlxgbe/ |
H A D | ql_hw.c | 2284 struct tcphdr *th = NULL; 2308 sizeof(struct tcphdr); 2327 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); 2334 sizeof (struct tcphdr); 2350 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen); 2367 if (tcp_hlen > sizeof(struct tcphdr)) { 2369 (tcp_hlen - sizeof(struct tcphdr)), 4292 struct tcphdr *th = NULL; 4324 th = (struct tcphdr *)(mp->m_data + hdrlen);; 4327 th = (struct tcphdr *)bu [all...] |
H A D | ql_isr.c | 217 struct tcphdr *th; 300 th = (struct tcphdr *)(mpf->m_data + sgc->l4_offset);
|
/freebsd-12-stable/sys/dev/sge/ |
H A D | if_sge.c | 1407 struct tcphdr *tcp; 1443 m = m_pullup(m, poff + sizeof(struct tcphdr)); 1448 tcp = (struct tcphdr *)(mtod(m, char *) + poff); 1460 tcp = (struct tcphdr *)(mtod(m, char *) + poff);
|
/freebsd-12-stable/sys/net/ |
H A D | pfvar.h | 907 struct tcphdr *tcp; 1564 struct tcphdr *, struct pf_state_peer *, struct pf_state_peer *); 1566 u_short *, struct tcphdr *, struct pf_state *, 1685 const struct tcphdr *);
|
/freebsd-12-stable/sys/netpfil/ipfw/nat64/ |
H A D | nat64_translate.c | 902 struct tcphdr *tcp; 1119 if (len < offsetof(struct tcphdr, th_sum)) 1300 struct tcphdr *tcp = TCP(mtodo(m, hlen)); 1676 struct tcphdr *tcp = TCP(mtodo(m, hlen));
|
/freebsd-12-stable/sys/dev/virtio/network/ |
H A D | if_vtnet.c | 1524 case offsetof(struct tcphdr, th_sum): 1574 if (__predict_false(m->m_len < offset + sizeof(struct tcphdr))) 2066 struct tcphdr *tcp, tcphdr; local 2070 if (__predict_false(m->m_len < offset + sizeof(struct tcphdr))) { 2071 m_copydata(m, offset, sizeof(struct tcphdr), (caddr_t) &tcphdr); 2072 tcp = &tcphdr; 2074 tcp = (struct tcphdr *)(m->m_data + offset);
|
/freebsd-12-stable/sys/dev/e1000/ |
H A D | em_txrx.c | 173 pi->ipi_ehdrlen + pi->ipi_ip_hlen + offsetof(struct tcphdr, th_sum); 275 tucso = hdr_len + offsetof(struct tcphdr, th_sum);
|
/freebsd-12-stable/sys/dev/ena/ |
H A D | ena_datapath.c | 699 struct tcphdr *th; 740 th = (struct tcphdr *)(mtodo(mbuf_next, offset));
|
/freebsd-12-stable/sys/dev/mlx4/mlx4_en/ |
H A D | mlx4_en_tx.c | 502 struct tcphdr *th; 544 th = (struct tcphdr *)(mb->m_data + eth_hdr_len);
|