/freebsd-12-stable/sys/netinet/ |
H A D | tcp_pcap.h | 33 void tcp_pcap_add(struct tcphdr *th, struct mbuf *m, struct mbufq *queue);
|
H A D | toecore.h | 39 struct tcphdr; 131 void toe_syncache_add(struct in_conninfo *, struct tcpopt *, struct tcphdr *, 133 int toe_syncache_expand(struct in_conninfo *, struct tcpopt *, struct tcphdr *, 136 int toe_4tuple_check(struct in_conninfo *, struct tcphdr *, struct ifnet *);
|
H A D | tcp_syncache.h | 45 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 D | tcp_debug.h | 56 struct tcphdr th;
|
H A D | tcpip.h | 43 struct tcphdr ti_t; /* tcp header */
|
H A D | tcp_var.h | 233 struct tcphdr tt_t; 275 void (*tfb_tcp_do_segment)(struct mbuf *, struct tcphdr *, 279 int (*tfb_do_segment_nounlock)(struct mbuf *, struct tcphdr *, 283 void (*tfb_tcp_hpts_do_segment)(struct mbuf *, struct tcphdr *, 665 struct tcphdr *th; 673 struct tcphdr *th, struct tcpopt *to, 862 char *tcp_log_addrs(struct in_conninfo *, struct tcphdr *, void *, 864 char *tcp_log_vain(struct in_conninfo *, struct tcphdr *, void *, 866 int tcp_reass(struct tcpcb *, struct tcphdr *, tcp_seq *, int *, struct mbuf *); 870 void tcp_dropwithreset(struct mbuf *, struct tcphdr *, [all...] |
H A D | tcp.h | 46 #define tcp6hdr tcphdr /* for KAME src sync over BSD*'s */ 52 struct tcphdr { struct 123 * For IPv6 the MSS is IPV6_MMTU - sizeof(struct ip6_hdr) - sizeof(struct tcphdr) 154 #define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr))
|
H A D | tcp_timewait.c | 379 tcp_twcheck(struct inpcb *inp, struct tcpopt *to, struct tcphdr *th, 551 struct tcphdr *th = NULL; 579 hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr); 581 th = (struct tcphdr *)(ip6 + 1); 592 th = (struct tcphdr *)(ip + 1); 616 th->th_off = (sizeof(struct tcphdr) + optlen) >> 2; 620 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); 625 sizeof(struct tcphdr) + optlen, IPPROTO_TCP, 0); 639 htons(sizeof(struct tcphdr) + optlen + IPPROTO_TCP));
|
H A D | tcp_debug.c | 100 struct tcphdr *th, int req) 186 len -= sizeof (struct tcphdr);
|
/freebsd-12-stable/sys/netinet/tcp_stacks/ |
H A D | rack_bbr_common.h | 77 struct tcphdr *th, struct tcpcb *tp, int32_t * tlenp, int32_t * thf, 81 struct tcphdr *th, int32_t thflags, int32_t tlen, int32_t * ret_val); 84 struct tcphdr *th, int32_t rstreason, int32_t tlen); 89 ctf_process_rst(struct mbuf *m, struct tcphdr *th, 93 ctf_challenge_ack(struct mbuf *m, struct tcphdr *th, 97 ctf_ts_check(struct mbuf *m, struct tcphdr *th, 104 ctf_do_dropwithreset_conn(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th,
|
H A D | rack_bbr_common.c | 192 struct tcphdr *th; 254 th = (struct tcphdr *)(ip6 + 1); 300 th = (struct tcphdr *)(ip + 1); 346 if (off < sizeof (struct tcphdr) || off > tlen) { 435 ctf_do_dropwithreset(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th, 452 ctf_drop_checks(struct tcpopt *to, struct mbuf *m, struct tcphdr *th, struct tcpcb *tp, int32_t * tlenp, int32_t * thf, int32_t * drop_hdrlen, int32_t * ret_val) 556 ctf_do_dropafterack(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th, int32_t thflags, int32_t tlen, int32_t * ret_val) 599 ctf_process_rst(struct mbuf *m, struct tcphdr *th, struct socket *so, struct tcpcb *tp) 667 ctf_challenge_ack(struct mbuf *m, struct tcphdr *th, struct tcpcb *tp, int32_t * ret_val) 697 ctf_ts_check(struct mbuf *m, struct tcphdr *t [all...] |
/freebsd-12-stable/usr.sbin/ppp/ |
H A D | tcpmss.c | 75 #define MAXMSS(mtu) ((mtu) - sizeof(struct ip) - sizeof(struct tcphdr) - 12) 101 MSSFixup(struct tcphdr *tc, size_t pktlen, u_int16_t maxmss) 111 if (hlen <= sizeof(struct tcphdr) || hlen > pktlen) 118 for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1); 165 plen >= sizeof(struct tcphdr) + hlen) 166 MSSFixup((struct tcphdr *)(MBUF_CTOP(bp) + hlen), plen - hlen,
|
H A D | slcompress.c | 167 register struct tcphdr *oth; 168 register struct tcphdr *th; 185 th = (struct tcphdr *) & ((int *) ip)[hlen]; 267 oth = (struct tcphdr *) & ((int *) &cs->cs_ip)[hlen]; 437 register struct tcphdr *th; 457 if ((int)(hlen + sizeof(struct tcphdr)) > len) 459 th = (struct tcphdr *) & ((char *) ip)[hlen]; 504 th = (struct tcphdr *) & ((u_char *) & cs->cs_ip)[hlen];
|
/freebsd-12-stable/sys/netgraph/ |
H A D | ng_tcpmss.c | 81 static int correct_mss(struct tcphdr *, int, uint16_t, int); 273 struct tcphdr *tcp; 320 M_CHECK(iphlen - sizeof(struct ip) + sizeof(struct tcphdr)); 322 tcp = (struct tcphdr *)((caddr_t )ip + iphlen); 326 if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen) 330 if (!(tcp->th_flags & TH_SYN) || tcphlen == sizeof(struct tcphdr)) 336 M_CHECK(tcphlen - sizeof(struct tcphdr)); 338 tcp = (struct tcphdr *)((caddr_t )ip + iphlen); 412 correct_mss(struct tcphdr *tc, int hlen, uint16_t maxmss, int flags) 420 for (olen = hlen - sizeof(struct tcphdr), op [all...] |
/freebsd-12-stable/sys/netpfil/ipfw/pmod/ |
H A D | tcpmod.c | 63 tcpmod_setmss(struct mbuf **mp, struct tcphdr *tcp, int tlen, uint16_t mss) 82 for (tlen -= sizeof(struct tcphdr), cp = (u_char *)(tcp + 1); 124 struct tcphdr *tcp; 146 if (hlen <= sizeof(struct tcphdr) || hlen > plen) 156 struct tcphdr *tcp; 166 if (hlen <= sizeof(struct tcphdr) || hlen > plen) 197 * IP+IP_options/IP_extensions+tcphdr length, because TCP header 199 * struct tcphdr.
|
/freebsd-12-stable/sys/netipsec/ |
H A D | ipsec_support.h | 36 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 *);
|
/freebsd-12-stable/sys/netinet/libalias/ |
H A D | alias_pptp.c | 300 struct tcphdr *tc; 339 tc = (struct tcphdr *)ip_next(pip); 372 struct tcphdr *tc; 411 tc = (struct tcphdr *)ip_next(pip); 435 struct tcphdr *tc; 438 tc = (struct tcphdr *)ip_next(pip);
|
H A D | alias_skinny.c | 210 struct tcphdr *tc, struct alias_link *lnk, 229 struct ip *pip, struct tcphdr *tc, 253 struct tcphdr *tc, struct alias_link *lnk, 271 struct ip *pip, struct tcphdr *tc, 305 struct tcphdr *tc; 312 tc = (struct tcphdr *)ip_next(pip);
|
H A D | alias_util.c | 111 struct tcphdr *tc; 118 tc = (struct tcphdr *)ip_next(pip);
|
H A D | alias_ftp.c | 227 struct tcphdr *tc; 231 tc = (struct tcphdr *)ip_next(pip); 287 struct tcphdr *tc; 290 tc = (struct tcphdr *)ip_next(pip); 657 struct tcphdr *tc; 665 tc = (struct tcphdr *)ip_next(pip); 735 tc = (struct tcphdr *)ip_next(pip);
|
H A D | alias_smedia.c | 239 struct tcphdr *tc; 251 tc = (struct tcphdr *)ip_next(pip); 396 tc = (struct tcphdr *)ip_next(pip); 426 struct tcphdr *tc; 447 tc = (struct tcphdr *)ip_next(pip); 470 struct tcphdr *tc; 479 tc = (struct tcphdr *)ip_next(pip);
|
/freebsd-12-stable/sys/net/ |
H A D | slcompress.c | 160 struct tcphdr *oth; 161 struct tcphdr *th; 176 th = (struct tcphdr *)&((int32_t *)ip)[hlen]; 255 oth = (struct tcphdr *)&((int32_t *)&cs->cs_ip)[hlen]; 461 struct tcphdr *th; 481 if (hlen + sizeof(struct tcphdr) > buflen) 483 hlen += ((struct tcphdr *)&((char *)ip)[hlen])->th_off << 2; 522 th = (struct tcphdr *)&((u_char *)&cs->cs_ip)[hlen];
|
/freebsd-12-stable/sys/dev/ixgbe/ |
H A D | if_fdir.c | 86 struct tcphdr *th; 113 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
|
/freebsd-12-stable/contrib/tcpdump/ |
H A D | print-sl.c | 181 ND_TCHECK(*((const struct tcphdr *)&((const int *)ip)[hlen])); 182 hlen += TH_OFF((const struct tcphdr *)&((const int *)ip)[hlen]); 283 ND_TCHECK(*((const struct tcphdr *)&((const int32_t *)ip)[hlen])); 284 hlen += TH_OFF((const struct tcphdr *)&((const int32_t *)ip)[hlen]);
|
H A D | tcp.h | 41 struct tcphdr { struct
|