Searched refs:tcphdr (Results 76 - 100 of 132) sorted by relevance

123456

/freebsd-12-stable/usr.sbin/traceroute6/
H A Dtraceroute6.c678 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 Dip_fw_dynamic.c552 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 Ddn_sched_fq_pie.c793 struct tcphdr *th;
813 th = (struct tcphdr *)(ip6 + 1);
840 th = (struct tcphdr *)(ip + 1);
/freebsd-12-stable/sys/dev/netmap/
H A Dif_ptnet.c1402 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 Dt4_listen.c716 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 Dt4_tom.c898 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 Dqla_hw.c720 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 Dnetback_unit_tests.c2314 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 Dip_fil_freebsd.c350 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 Dnetflow.c737 struct tcphdr *tcp;
739 tcp = (struct tcphdr *)((caddr_t )ip + hlen);
851 struct tcphdr *tcp;
853 tcp = (struct tcphdr *)upper_ptr;
H A Dng_netflow.c795 M_CHECK(sizeof(struct tcphdr));
841 M_CHECK(sizeof(struct tcphdr));
/freebsd-12-stable/sys/netinet/
H A Dsiftr.c840 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 Dtcp_reass.c324 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 Dng_nat.c855 struct tcphdr *th = (struct tcphdr *)((caddr_t)ip +
889 m->m_pkthdr.csum_data = offsetof(struct tcphdr,
/freebsd-12-stable/contrib/traceroute/
H A Dtraceroute.c457 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 Dpf.c238 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 Dql_hw.c2284 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 Dql_isr.c217 struct tcphdr *th;
300 th = (struct tcphdr *)(mpf->m_data + sgc->l4_offset);
/freebsd-12-stable/sys/dev/sge/
H A Dif_sge.c1407 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 Dpfvar.h907 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 Dnat64_translate.c902 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 Dif_vtnet.c1524 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 Dem_txrx.c173 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 Dena_datapath.c699 struct tcphdr *th;
740 th = (struct tcphdr *)(mtodo(mbuf_next, offset));
/freebsd-12-stable/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_tx.c502 struct tcphdr *th;
544 th = (struct tcphdr *)(mb->m_data + eth_hdr_len);

Completed in 409 milliseconds

123456