aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/filter.h
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1997-10-26 01:04:02 +0000
committerBrian Somers <brian@FreeBSD.org>1997-10-26 01:04:02 +0000
commit75240ed1789e0754da5b1024dcb80dcfc5dae0c3 (patch)
treeef7296fa69b93cfce40120da724736ed6c9b347e /usr.sbin/ppp/filter.h
parent11ea2762ebb2a63ea051e522e95837700de85d17 (diff)
downloadsrc-75240ed1789e0754da5b1024dcb80dcfc5dae0c3.tar.gz
src-75240ed1789e0754da5b1024dcb80dcfc5dae0c3.zip
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
Notes
Notes: svn path=/head/; revision=30715
Diffstat (limited to 'usr.sbin/ppp/filter.h')
-rw-r--r--usr.sbin/ppp/filter.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/usr.sbin/ppp/filter.h b/usr.sbin/ppp/filter.h
index d6417fc20133..f4ea051b3a89 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 **);