diff options
author | darrenr <darrenr@FreeBSD.org> | 1997-05-25 15:50:46 +0000 |
---|---|---|
committer | darrenr <darrenr@FreeBSD.org> | 1997-05-25 15:50:46 +0000 |
commit | a93925894facc20de4d8d36bcb61fc349047c73f (patch) | |
tree | 25de559faf9011589a627f617cbd6ba5d2249232 /sys/netinet/ip_state.h | |
parent | 525015045eb68d4a74c33a475a65fbacb429ca5a (diff) | |
download | FreeBSD-src-a93925894facc20de4d8d36bcb61fc349047c73f.zip FreeBSD-src-a93925894facc20de4d8d36bcb61fc349047c73f.tar.gz |
Import version 3.2alpha7
Diffstat (limited to 'sys/netinet/ip_state.h')
-rw-r--r-- | sys/netinet/ip_state.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/netinet/ip_state.h b/sys/netinet/ip_state.h index b92f8c2..9301101 100644 --- a/sys/netinet/ip_state.h +++ b/sys/netinet/ip_state.h @@ -1,12 +1,12 @@ /* - * (C)opyright 1995 by Darren Reed. + * (C)opyright 1995-1997 by Darren Reed. * * Redistribution and use in source and binary forms are permitted * provided that this notice is preserved and due credit is given * to the original author and the contributors. * * @(#)ip_state.h 1.3 1/12/96 (C) 1995 Darren Reed - * $Id: ip_state.h,v 1.1.1.2 1997/04/03 10:11:33 darrenr Exp $ + * $Id: ip_state.h,v 2.0.2.9 1997/05/24 07:35:11 darrenr Exp $ */ #ifndef __IP_STATE_H__ #define __IP_STATE_H__ @@ -14,6 +14,12 @@ #define IPSTATE_SIZE 257 #define IPSTATE_MAX 2048 /* Maximum number of states held */ +#define PAIRS(s1,d1,s2,d2) ((((s1) == (s2)) && ((d1) == (d2))) ||\ + (((s1) == (d2)) && ((d1) == (s2)))) +#define IPPAIR(s1,d1,s2,d2) PAIRS((s1).s_addr, (d1).s_addr, \ + (s2).s_addr, (d2).s_addr) + + typedef struct udpstate { u_short us_sport; u_short us_dport; @@ -106,6 +112,14 @@ typedef struct ips_stat { ipstate_t **iss_table; } ips_stat_t; + +extern u_long fr_tcpidletimeout; +extern u_long fr_tcpclosewait; +extern u_long fr_tcplastack; +extern u_long fr_tcptimeout; +extern u_long fr_tcpclosed; +extern u_long fr_udptimeout; +extern u_long fr_icmptimeout; extern int fr_tcpstate __P((ipstate_t *, fr_info_t *, ip_t *, tcphdr_t *, u_short)); extern ips_stat_t *fr_statetstats __P((void)); @@ -115,4 +129,5 @@ extern void fr_timeoutstate __P((void)); extern void fr_tcp_age __P((u_long *, u_char *, ip_t *, fr_info_t *, int)); extern void fr_stateunload __P((void)); extern void ipstate_log __P((struct ipstate *, u_short)); +extern int fr_state_ioctl __P((caddr_t, int, int)); #endif /* __IP_STATE_H__ */ |