diff options
author | andre <andre@FreeBSD.org> | 2007-05-13 22:16:13 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2007-05-13 22:16:13 +0000 |
commit | 25d7c9695a21b0d5638e2880e26fbce735bd36f9 (patch) | |
tree | fbfc990be06928fffd46d3d8014bb2017f4a7456 /sys/netinet/tcp_var.h | |
parent | 7785ed9f788559ea9a9e2af3b3090d1d247df6d8 (diff) | |
download | FreeBSD-src-25d7c9695a21b0d5638e2880e26fbce735bd36f9.zip FreeBSD-src-25d7c9695a21b0d5638e2880e26fbce735bd36f9.tar.gz |
Complete the (mechanical) move of the TCP reassembly and timewait
functions from their origininal place to their own files.
TCP Reassembly from tcp_input.c -> tcp_reass.c
TCP Timewait from tcp_subr.c -> tcp_timewait.c
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r-- | sys/netinet/tcp_var.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index bb1c18d..925ee7d 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -75,6 +75,18 @@ struct tcptemp { #define tcp6cb tcpcb /* for KAME src sync over BSD*'s */ +/* Neighbor Discovery, Neighbor Unreachability Detection Upper layer hint. */ +#ifdef INET6 +#define ND6_HINT(tp) \ +do { \ + if ((tp) && (tp)->t_inpcb && \ + ((tp)->t_inpcb->inp_vflag & INP_IPV6) != 0) \ + nd6_nud_hint(NULL, NULL, 0); \ +} while (0) +#else +#define ND6_HINT(tp) +#endif + /* * Tcp control block, one per tcp; fields: * Organized for 16 byte cacheline efficiency. @@ -508,6 +520,7 @@ void tcp_drain(void); void tcp_fasttimo(void); void tcp_init(void); void tcp_fini(void *); +int tcp_reass(struct tcpcb *, struct tcphdr *, int *, struct mbuf *); void tcp_reass_init(void); void tcp_input(struct mbuf *, int); u_long tcp_maxmtu(struct in_conninfo *, int *); @@ -523,6 +536,8 @@ struct tcpcb * int tcp_output(struct tcpcb *); void tcp_respond(struct tcpcb *, void *, struct tcphdr *, struct mbuf *, tcp_seq, tcp_seq, int); +void tcp_tw_init(void); +void tcp_tw_zone_change(void); int tcp_twrespond(struct tcptw *, int); void tcp_setpersist(struct tcpcb *); #ifdef TCP_SIGNATURE |