diff options
author | brian <brian@FreeBSD.org> | 1997-10-26 01:04:02 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-10-26 01:04:02 +0000 |
commit | 486b8925ecb0d408e403474828e20c1cce8aaec8 (patch) | |
tree | cca66974908224bf517868aaafb2e4acd1abe88d /usr.sbin/ppp/filter.h | |
parent | 1d2927c9fac7bcfe68bf6ab502c716adc91d6f09 (diff) | |
download | FreeBSD-src-486b8925ecb0d408e403474828e20c1cce8aaec8.zip FreeBSD-src-486b8925ecb0d408e403474828e20c1cce8aaec8.tar.gz |
Cosmetic (no functional changes):
o Add missing $Id$s
o Move extern decls from .c -> .h files
o Staticize
o Remove #includes from .h files
o style(9)ify includes
o bcopy -> memcpy
bzero -> memset
bcmp -> memcmp
index -> strchr
rindex -> strrchr
o Move timeout.h -> timer.h (making it consistent w/ timer.c)
o Add -Wmissing-prototypes
Diffstat (limited to 'usr.sbin/ppp/filter.h')
-rw-r--r-- | usr.sbin/ppp/filter.h | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/usr.sbin/ppp/filter.h b/usr.sbin/ppp/filter.h index d6417fc..f4ea051 100644 --- a/usr.sbin/ppp/filter.h +++ b/usr.sbin/ppp/filter.h @@ -15,15 +15,11 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: filter.h,v 1.8 1997/06/09 03:27:20 brian Exp $ + * $Id: filter.h,v 1.9 1997/08/25 00:29:11 brian Exp $ * * TODO: */ -#ifndef _FILTER_H_ -#define _FILTER_H_ - -#define STREQ(a,b) (strcmp(a,b) == 0) /* * Actions */ @@ -65,7 +61,7 @@ struct filterent { short dstop; u_short dstport; int estab; - } opt; + } opt; }; #define MAXFILTERS 20 @@ -74,11 +70,18 @@ struct filterent { #define FL_OUT 1 #define FL_DIAL 2 #define FL_KEEP 3 -struct filterent ifilters[MAXFILTERS]; -struct filterent ofilters[MAXFILTERS]; -struct filterent dfilters[MAXFILTERS]; -struct filterent afilters[MAXFILTERS]; /* keep Alive packet filter */ -extern int ParseAddr(int, char **, struct in_addr *, struct in_addr *, int *); +extern struct filterent ifilters[MAXFILTERS]; /* incoming packet filter */ +extern struct filterent ofilters[MAXFILTERS]; /* outgoing packet filter */ +extern struct filterent dfilters[MAXFILTERS]; /* dial-out packet filter */ +extern struct filterent afilters[MAXFILTERS]; /* keep-alive packet filter */ -#endif /* _FILTER_H_ */ +extern int ParseAddr(int, char **, struct in_addr *, struct in_addr *, int *); +extern int ShowIfilter(struct cmdtab *, int, char **); +extern int ShowOfilter(struct cmdtab *, int, char **); +extern int ShowDfilter(struct cmdtab *, int, char **); +extern int ShowAfilter(struct cmdtab *, int, char **); +extern int SetIfilter(struct cmdtab *, int, char **); +extern int SetOfilter(struct cmdtab *, int, char **); +extern int SetDfilter(struct cmdtab *, int, char **); +extern int SetAfilter(struct cmdtab *, int, char **); |