Searched refs:tcphdr (Results 51 - 75 of 132) sorted by relevance

123456

/freebsd-12-stable/sys/netpfil/pf/
H A Dpf_norm.c138 struct tcphdr *, int, sa_family_t);
1349 struct tcphdr *th = pd->hdr.tcp;
1421 if (th->th_off < (sizeof(struct tcphdr) >> 2))
1465 struct tcphdr *th, struct pf_state_peer *src, struct pf_state_peer *dst)
1504 if (th->th_off > (sizeof(struct tcphdr) >> 2) && src->scrub &&
1508 opt = hdr + sizeof(struct tcphdr);
1509 hlen = (th->th_off << 2) - sizeof(struct tcphdr);
1559 u_short *reason, struct tcphdr *th, struct pf_state *state,
1604 if (th->th_off > (sizeof(struct tcphdr) >> 2) &&
1610 opt = hdr + sizeof(struct tcphdr);
[all...]
/freebsd-12-stable/sys/netinet/
H A Dtcp_input.c279 hhook_run_tcp_est_in(struct tcpcb *tp, struct tcphdr *th, struct tcpopt *to)
298 cc_ack_received(struct tcpcb *tp, struct tcphdr *th, uint16_t nsegs,
404 cc_cong_signal(struct tcpcb *tp, struct tcphdr *th, uint32_t type)
461 cc_post_recovery(struct tcpcb *tp, struct tcphdr *th)
491 cc_ecnpkt_handler(struct tcpcb *tp, struct tcphdr *th, uint8_t iptos)
541 if (m->m_len < *offp + sizeof(struct tcphdr)) {
542 m = m_pullup(m, *offp + sizeof(struct tcphdr));
576 struct tcphdr *th = NULL;
610 struct tcphdr tcp_savetcp;
628 th = (struct tcphdr *)((caddr_
[all...]
H A Dtcp_output.c153 hhook_run_tcp_est_out(struct tcpcb *tp, struct tcphdr *th,
200 struct tcphdr *th;
766 hdrlen = sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
979 panic("tcphdr too big");
1106 th = (struct tcphdr *)(ip6 + 1);
1115 th = (struct tcphdr *)(ip + 1);
1199 th->th_off = (sizeof (struct tcphdr) + optlen) >> 2;
1261 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
1289 th->th_sum = in6_cksum_pseudo(ip6, sizeof(struct tcphdr) +
1300 htons(sizeof(struct tcphdr)
[all...]
H A Dip_icmp.c246 struct tcphdr *th;
249 if (oiphlen + sizeof(struct tcphdr) > n->m_len &&
252 if (n->m_len < oiphlen + sizeof(struct tcphdr) &&
253 (n = m_pullup(n, oiphlen + sizeof(struct tcphdr))) == NULL)
258 if (tcphlen < sizeof(struct tcphdr))
H A Dtcp_timer.c367 tcp_trace(TA_USER, ostate, tp, (void *)0, (struct tcphdr *)0,
468 tcp_trace(TA_USER, ostate, tp, (void *)0, (struct tcphdr *)0,
487 tcp_trace(TA_USER, ostate, tp, (void *)0, (struct tcphdr *)0,
858 tcp_trace(TA_USER, ostate, tp, (void *)0, (struct tcphdr *)0,
/freebsd-12-stable/sys/netinet/tcp_stacks/
H A Drack.c268 rack_process_ack(struct mbuf *m, struct tcphdr *th,
272 rack_process_data(struct mbuf *m, struct tcphdr *th,
277 struct tcphdr *th, uint16_t nsegs, uint16_t type, int32_t recovery);
285 rack_cong_signal(struct tcpcb *tp, struct tcphdr *th,
293 rack_do_segment(struct mbuf *m, struct tcphdr *th,
314 struct tcphdr *th);
325 rack_hpts_do_segment(struct mbuf *m, struct tcphdr *th,
333 static void rack_post_recovery(struct tcpcb *tp, struct tcphdr *th);
357 rack_challenge_ack(struct mbuf *m, struct tcphdr *th,
360 rack_do_close_wait(struct mbuf *m, struct tcphdr *t
[all...]
H A Dtcp_rack.h283 int32_t(*r_substate) (struct mbuf *, struct tcphdr *,
/freebsd-12-stable/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.h80 #define TCP(p) ((struct tcphdr *)(p))
/freebsd-12-stable/sys/dev/sfxge/
H A Dsfxge_tx.c815 const struct tcphdr *th;
816 struct tcphdr th_copy;
851 if (mbuf->m_len < mbuf->m_pkthdr.l3hlen + offsetof(struct tcphdr, th_win)) {
856 th = (const struct tcphdr *)mtodo(mbuf, mbuf->m_pkthdr.l3hlen);
988 static const struct tcphdr *tso_tcph(const struct sfxge_tso_state *tso)
990 return (const struct tcphdr *)(tso->mbuf->m_data + tso->tcph_off);
1053 const struct tcphdr *th;
1054 struct tcphdr th_copy;
1107 if (mbuf->m_len < tso->tcph_off + offsetof(struct tcphdr, th_win)) {
1228 struct tcphdr *tsoh_t
[all...]
/freebsd-12-stable/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_rx.c135 struct tcphdr *th;
153 th = (struct tcphdr *)(ip4 + 1);
157 th = (struct tcphdr *)(ip6 + 1);
H A Dmlx5_en_tx.c229 const struct tcphdr *th;
289 th = (const struct tcphdr *)(m_th->m_data);
291 th = (const struct tcphdr *)(mb->m_data + eth_hdr_len);
/freebsd-12-stable/sys/netpfil/ipfw/
H A Ddn_sched_fq_codel.c215 struct tcphdr *th;
235 th = (struct tcphdr *)(ip6 + 1);
263 th = (struct tcphdr *)(ip + 1);
H A Dip_fw_nat.c416 struct tcphdr *th;
418 th = (struct tcphdr *)(ip + 1);
424 struct tcphdr *th;
434 th = (struct tcphdr *)(ip + 1);
442 offsetof(struct tcphdr, th_sum);
/freebsd-12-stable/sbin/natd/
H A Dnatd.c844 struct tcphdr* tcphdr; local
855 tcphdr = (struct tcphdr*) ((char*) ip + (ip->ip_hl << 2));
858 ntohs (tcphdr->th_sport),
860 ntohs (tcphdr->th_dport));
/freebsd-12-stable/contrib/ipfilter/lib/
H A Dipft_tx.c223 ip->ip_len += sizeof(struct tcphdr);
394 ip6->ip6_plen = sizeof(struct tcphdr);
/freebsd-12-stable/sys/net/
H A Dif_spppfr.c321 struct tcphdr *tcp = (struct tcphdr*) ((long*)ip + ip->ip_hl);
/freebsd-12-stable/sys/netgraph/
H A Dng_vjc.c594 struct tcphdr *tcp;
608 tcp = (struct tcphdr *)((u_char *)ip + ihlen);
/freebsd-12-stable/sys/netinet/khelp/
H A Dh_ertt.c202 struct tcphdr *th;
437 struct tcphdr *th;
/freebsd-12-stable/sys/netipsec/
H A Dsubr_ipsec.c291 struct tcphdr *th, u_char *buf), METHOD_ARGS(m, th, buf)
296 struct tcphdr *th, u_char *buf), METHOD_ARGS(m, th, buf)
H A Dipsec.c522 struct tcphdr th;
530 if (off + sizeof(struct tcphdr) > m->m_pkthdr.len)
683 struct tcphdr th;
706 if (off + sizeof(struct tcphdr) > m->m_pkthdr.len)
H A Dipsec.h313 struct tcphdr;
H A Dudpencap.c259 off = offsetof(struct tcphdr, th_sum);
/freebsd-12-stable/sys/dev/mxge/
H A Dif_mxge_var.h324 struct tcphdr *tcp;
/freebsd-12-stable/sys/dev/qlxge/
H A Dqls_def.h86 sizeof (struct ip6_hdr) + sizeof (struct tcphdr) + 16)
/freebsd-12-stable/usr.sbin/ppp/
H A Dip.c304 const struct tcphdr *th;
364 th = (const struct tcphdr *)payload;
568 const struct tcphdr *th;
816 th = (const struct tcphdr *)payload;

Completed in 298 milliseconds

123456