Home
last modified time | relevance | path

Searched refs:tcphdr (Results 1 – 25 of 78) sorted by relevance

1234

/f-stack/freebsd/netinet/tcp_stacks/
H A Drack_bbr_common.h102 struct tcphdr *th, struct tcpcb *tp, int32_t * tlenp, int32_t * thf,
106 struct tcphdr *th, int32_t thflags, int32_t tlen, int32_t * ret_val);
109 struct tcphdr *th, int32_t rstreason, int32_t tlen);
114 ctf_process_rst(struct mbuf *m, struct tcphdr *th,
118 ctf_challenge_ack(struct mbuf *m, struct tcphdr *th,
122 ctf_ts_check(struct mbuf *m, struct tcphdr *th,
129 ctf_do_dropwithreset_conn(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th,
H A Drack_bbr_common.c251 struct tcphdr *th; in ctf_process_inbound_raw()
307 th = (struct tcphdr *)(ip6 + 1); in ctf_process_inbound_raw()
353 th = (struct tcphdr *)(ip + 1); in ctf_process_inbound_raw()
399 if (off < sizeof (struct tcphdr) || off > tlen) { in ctf_process_inbound_raw()
495 ctf_do_dropwithreset(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th, in ctf_do_dropwithreset()
512 ctf_drop_checks(struct tcpopt *to, struct mbuf *m, struct tcphdr *th, struct tcpcb *tp, int32_t * t… in ctf_drop_checks()
617 ctf_do_dropafterack(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th, int32_t thflags, int32_t t… in ctf_do_dropafterack()
660 ctf_process_rst(struct mbuf *m, struct tcphdr *th, struct socket *so, struct tcpcb *tp) in ctf_process_rst()
727 ctf_challenge_ack(struct mbuf *m, struct tcphdr *th, struct tcpcb *tp, int32_t * ret_val) in ctf_challenge_ack()
758 ctf_ts_check(struct mbuf *m, struct tcphdr *th, struct tcpcb *tp, in ctf_ts_check()
[all …]
/f-stack/tools/compat/include/netinet/
H A Dtcp_var.h282 struct tcphdr tt_t;
725 struct tcphdr *th;
733 struct tcphdr *th, struct tcpopt *to,
944 void tcp_dropwithreset(struct mbuf *, struct tcphdr *,
947 struct tcphdr *, struct mbuf *, int);
950 void cc_ack_received(struct tcpcb *tp, struct tcphdr *th,
958 struct tcphdr *th, struct tcpopt *to);
965 void tcp_do_segment(struct mbuf *, struct tcphdr *,
1062 int tcp_newreno(struct tcpcb *, struct tcphdr *);
1076 tcp_fields_to_host(struct tcphdr *th) in tcp_fields_to_host()
[all …]
H A Dtcp.h46 #define tcp6hdr tcphdr /* for KAME src sync over BSD*'s */
52 struct tcphdr { struct
153 #define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr))
/f-stack/freebsd/netinet/
H A Dtcp_var.h282 struct tcphdr tt_t;
725 struct tcphdr *th;
733 struct tcphdr *th, struct tcpopt *to,
944 void tcp_dropwithreset(struct mbuf *, struct tcphdr *,
947 struct tcphdr *, struct mbuf *, int);
950 void cc_ack_received(struct tcpcb *tp, struct tcphdr *th,
958 struct tcphdr *th, struct tcpopt *to);
965 void tcp_do_segment(struct mbuf *, struct tcphdr *,
1062 int tcp_newreno(struct tcpcb *, struct tcphdr *);
1076 tcp_fields_to_host(struct tcphdr *th) in tcp_fields_to_host()
[all …]
H A Dtoecore.h41 struct tcphdr;
138 void toe_syncache_add(struct in_conninfo *, struct tcpopt *, struct tcphdr *,
140 int toe_syncache_expand(struct in_conninfo *, struct tcpopt *, struct tcphdr *,
143 int toe_4tuple_check(struct in_conninfo *, struct tcphdr *, struct ifnet *);
H A Dtcp_syncache.h45 struct tcphdr *, struct socket **, struct mbuf *);
47 struct tcphdr *, struct inpcb *, struct socket **, struct mbuf *,
49 void syncache_chkrst(struct in_conninfo *, struct tcphdr *, struct mbuf *);
H A Dtcp_timewait.c380 tcp_twcheck(struct inpcb *inp, struct tcpopt *to, struct tcphdr *th, in tcp_twcheck()
552 struct tcphdr *th = NULL; in tcp_twrespond()
580 hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr); in tcp_twrespond()
582 th = (struct tcphdr *)(ip6 + 1); in tcp_twrespond()
593 th = (struct tcphdr *)(ip + 1); in tcp_twrespond()
617 th->th_off = (sizeof(struct tcphdr) + optlen) >> 2; in tcp_twrespond()
621 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_twrespond()
626 sizeof(struct tcphdr) + optlen, IPPROTO_TCP, 0); in tcp_twrespond()
640 htons(sizeof(struct tcphdr) + optlen + IPPROTO_TCP)); in tcp_twrespond()
H A Dtcp_lro.c206 static struct tcphdr *
210 struct tcphdr *th = NULL; in tcp_lro_get_th()
223 th = (struct tcphdr *)(ip6 + 1); in tcp_lro_get_th()
229 th = (struct tcphdr *)(ip4 + 1); in tcp_lro_get_th()
267 tcp_lro_csum_th(struct tcphdr *th) in tcp_lro_csum_th()
382 struct tcphdr **th) in tcp_lro_rx_ipv6()
401 struct tcphdr **th) in tcp_lro_rx_ipv4()
486 struct tcphdr *th; in tcp_flush_out_le()
578 struct tcphdr *th; in tcp_set_le_to_m()
688 struct tcphdr *th; in tcp_lro_condense()
[all …]
H A Dtcp.h46 #define tcp6hdr tcphdr /* for KAME src sync over BSD*'s */
52 struct tcphdr { struct
153 #define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr))
H A Din_rss.c216 const struct tcphdr *th; in rss_mbuf_software_hash_v4()
324 if (m->m_len < iphlen + sizeof(struct tcphdr)) { in rss_mbuf_software_hash_v4()
328 th = (const struct tcphdr *)((c_caddr_t)ip + iphlen); in rss_mbuf_software_hash_v4()
H A Dtcp_input.c582 if (m->m_len < *offp + sizeof(struct tcphdr)) { in tcp6_input()
616 struct tcphdr *th = NULL; in tcp_input()
648 struct tcphdr tcp_savetcp; in tcp_input()
667 th = (struct tcphdr *)((caddr_t)ip6 + off0); in tcp_input()
719 th = (struct tcphdr *)((caddr_t)ip + off0); in tcp_input()
770 if (off > sizeof (struct tcphdr)) { in tcp_input()
781 th = (struct tcphdr *)((caddr_t)ip6 + off0); in tcp_input()
796 th = (struct tcphdr *)((caddr_t)ip + off0); in tcp_input()
800 optlen = off - sizeof (struct tcphdr); in tcp_input()
1518 struct tcphdr tcp_savetcp; in tcp_do_segment()
[all …]
/f-stack/freebsd/netgraph/
H A Dng_tcpmss.c81 static int correct_mss(struct tcphdr *, int, uint16_t, int);
272 struct tcphdr *tcp; in ng_tcpmss_rcvdata()
319 M_CHECK(iphlen - sizeof(struct ip) + sizeof(struct tcphdr)); in ng_tcpmss_rcvdata()
321 tcp = (struct tcphdr *)((caddr_t )ip + iphlen); in ng_tcpmss_rcvdata()
325 if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen) in ng_tcpmss_rcvdata()
329 if (!(tcp->th_flags & TH_SYN) || tcphlen == sizeof(struct tcphdr)) in ng_tcpmss_rcvdata()
335 M_CHECK(tcphlen - sizeof(struct tcphdr)); in ng_tcpmss_rcvdata()
337 tcp = (struct tcphdr *)((caddr_t )ip + iphlen); in ng_tcpmss_rcvdata()
411 correct_mss(struct tcphdr *tc, int hlen, uint16_t maxmss, int flags) in correct_mss()
419 for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1); in correct_mss()
H A Dng_checksum.c355 struct tcphdr *th; in checksum_ipv4()
357 PULLUP_CHECK(m, sizeof(struct tcphdr)); in checksum_ipv4()
358 th = (struct tcphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv4()
481 struct tcphdr *th; in checksum_ipv6()
483 PULLUP_CHECK(m, sizeof(struct tcphdr)); in checksum_ipv6()
484 th = (struct tcphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv6()
/f-stack/freebsd/netpfil/ipfw/pmod/
H A Dtcpmod.c63 tcpmod_setmss(struct mbuf **mp, struct tcphdr *tcp, int tlen, uint16_t mss) in tcpmod_setmss()
82 for (tlen -= sizeof(struct tcphdr), cp = (u_char *)(tcp + 1); in tcpmod_setmss()
124 struct tcphdr *tcp; in tcpmod_ipv6_setmss()
146 if (hlen <= sizeof(struct tcphdr) || hlen > plen) in tcpmod_ipv6_setmss()
156 struct tcphdr *tcp; in tcpmod_ipv4_setmss()
166 if (hlen <= sizeof(struct tcphdr) || hlen > plen) in tcpmod_ipv4_setmss()
/f-stack/freebsd/netipsec/
H A Dipsec_support.h36 struct tcphdr;
64 int (*input)(struct mbuf *, struct tcphdr *, u_char *);
65 int (*output)(struct mbuf *, struct tcphdr *, u_char *);
102 struct tcphdr *, u_char *);
104 struct tcphdr *, u_char *);
H A Dxform_tcp.c173 tcp_signature_compute(struct mbuf *m, struct tcphdr *th, in tcp_signature_compute()
202 MD5Update(&ctx, (char *)th, sizeof(struct tcphdr)); in tcp_signature_compute()
257 tcp_ipsec_input(struct mbuf *m, struct tcphdr *th, u_char *buf) in tcp_ipsec_input()
298 tcp_ipsec_output(struct mbuf *m, struct tcphdr *th, u_char *buf) in tcp_ipsec_output()
/f-stack/freebsd/netinet/libalias/
H A Dalias_skinny.c212 struct tcphdr *tc, struct alias_link *lnk, in alias_skinny_reg_msg()
231 struct ip *pip, struct tcphdr *tc, in alias_skinny_startmedia()
255 struct tcphdr *tc, struct alias_link *lnk, in alias_skinny_port_msg()
273 struct ip *pip, struct tcphdr *tc, in alias_skinny_opnrcvch_ack()
307 struct tcphdr *tc; in AliasHandleSkinny()
314 tc = (struct tcphdr *)ip_next(pip); in AliasHandleSkinny()
H A Dalias_smedia.c243 struct tcphdr *tc; in alias_rtsp_out()
255 tc = (struct tcphdr *)ip_next(pip); in alias_rtsp_out()
406 tc = (struct tcphdr *)ip_next(pip); in alias_rtsp_out()
439 struct tcphdr *tc; in alias_pna_out()
461 tc = (struct tcphdr *)ip_next(pip); in alias_pna_out()
484 struct tcphdr *tc; in AliasHandleRtspOut()
493 tc = (struct tcphdr *)ip_next(pip); in AliasHandleRtspOut()
H A Dalias_pptp.c307 struct tcphdr *tc; in AliasHandlePptpOut()
347 tc = (struct tcphdr *)ip_next(pip); in AliasHandlePptpOut()
379 struct tcphdr *tc; in AliasHandlePptpIn()
419 tc = (struct tcphdr *)ip_next(pip); in AliasHandlePptpIn()
441 struct tcphdr *tc; in AliasVerifyPptp()
444 tc = (struct tcphdr *)ip_next(pip); in AliasVerifyPptp()
H A Dalias_ftp.c231 struct tcphdr *tc; in AliasHandleFtpOut()
235 tc = (struct tcphdr *)ip_next(pip); in AliasHandleFtpOut()
296 struct tcphdr *tc; in AliasHandleFtpIn()
299 tc = (struct tcphdr *)ip_next(pip); in AliasHandleFtpIn()
667 struct tcphdr *tc; in NewFtpMessage()
675 tc = (struct tcphdr *)ip_next(pip); in NewFtpMessage()
745 tc = (struct tcphdr *)ip_next(pip); in NewFtpMessage()
H A Dalias.c345 struct tcphdr *tc; in IcmpAliasIn2()
352 tc = (struct tcphdr *)ip_next(ip); in IcmpAliasIn2()
532 struct tcphdr *tc; in IcmpAliasOut2()
540 tc = (struct tcphdr *)ip_next(ip); in IcmpAliasOut2()
933 struct tcphdr *tc; in TcpAliasIn()
940 if (dlen < sizeof(struct tcphdr)) in TcpAliasIn()
942 tc = (struct tcphdr *)ip_next(pip); in TcpAliasIn()
1066 struct tcphdr *tc; in TcpAliasOut()
1072 if (dlen < sizeof(struct tcphdr)) in TcpAliasOut()
1074 tc = (struct tcphdr *)ip_next(pip); in TcpAliasOut()
[all …]
H A Dalias_util.c111 struct tcphdr *tc; in TcpChecksum()
118 tc = (struct tcphdr *)ip_next(pip); in TcpChecksum()
H A Dalias_local.h396 tcp_next(struct tcphdr *tcphdr) in tcp_next() argument
398 char *p = (char *)tcphdr; in tcp_next()
399 return (&p[tcphdr->th_off * 4]); in tcp_next()
/f-stack/freebsd/net/
H A Dslcompress.c159 struct tcphdr *oth; in sl_compress_tcp()
160 struct tcphdr *th; in sl_compress_tcp()
175 th = (struct tcphdr *)&((int32_t *)ip)[hlen]; in sl_compress_tcp()
254 oth = (struct tcphdr *)&((int32_t *)&cs->cs_ip)[hlen]; in sl_compress_tcp()
458 struct tcphdr *th; in sl_uncompress_tcp_core()
477 if (hlen + sizeof(struct tcphdr) > buflen) in sl_uncompress_tcp_core()
479 hlen += ((struct tcphdr *)&((char *)ip)[hlen])->th_off << 2; in sl_uncompress_tcp_core()
518 th = (struct tcphdr *)&((u_char *)&cs->cs_ip)[hlen]; in sl_uncompress_tcp_core()

1234