summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/filter.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-07-11 22:11:36 +0000
committerbrian <brian@FreeBSD.org>2000-07-11 22:11:36 +0000
commit7bc7c104eeee992d6a92297317b9f35e89e9096c (patch)
treedf8dd7356dce1ca25dbb18c53c87fd96e8dc3265 /usr.sbin/ppp/filter.h
parenta3d0c189ea25a7af3dfab30112f5d8d65e214e1c (diff)
downloadFreeBSD-src-7bc7c104eeee992d6a92297317b9f35e89e9096c.zip
FreeBSD-src-7bc7c104eeee992d6a92297317b9f35e89e9096c.tar.gz
Allow a ``timeout secs'' filter option to let specific packet types
effect the idle timer in different ways. Submitted by: Stefan Esser <se@freebsd.org> With adjustments by me to document the option in the man page and to give the same semantics for outgoing traffic as incoming. I made the style more consistent in ip.c - this should really have been done as a separate commit.
Diffstat (limited to 'usr.sbin/ppp/filter.h')
-rw-r--r--usr.sbin/ppp/filter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/ppp/filter.h b/usr.sbin/ppp/filter.h
index 0bfa560..6b452d8 100644
--- a/usr.sbin/ppp/filter.h
+++ b/usr.sbin/ppp/filter.h
@@ -75,6 +75,7 @@ struct filterent {
struct in_range f_dst; /* Destination address and mask */
u_short f_srcport; /* Source port, compared with f_srcop */
u_short f_dstport; /* Destination port, compared with f_dstop */
+ unsigned timeout; /* Keep alive value for passed packet */
};
#define MAXFILTERS 40 /* in each filter set */
OpenPOWER on IntegriCloud