aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/filter.h
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1998-05-21 21:49:08 +0000
committerBrian Somers <brian@FreeBSD.org>1998-05-21 21:49:08 +0000
commitd91d286164db7f10f516a9d0bca0a3527e864714 (patch)
treed42fe77349e72dc800e8fbd2c8e2b8f200d35100 /usr.sbin/ppp/filter.h
parent6cb0199d2346a87aeb63ba9355209029da769917 (diff)
parent641684cdbadb059ec03c02ffeb72040a9b1367d0 (diff)
downloadsrc-d91d286164db7f10f516a9d0bca0a3527e864714.tar.gz
src-d91d286164db7f10f516a9d0bca0a3527e864714.zip
MFMP: Make ppp multilink capable.
See the file README.changes, and re-read the man page.
Notes
Notes: svn path=/head/; revision=36285
Diffstat (limited to 'usr.sbin/ppp/filter.h')
-rw-r--r--usr.sbin/ppp/filter.h37
1 files changed, 21 insertions, 16 deletions
diff --git a/usr.sbin/ppp/filter.h b/usr.sbin/ppp/filter.h
index 1342a996664f..f96af409ada6 100644
--- a/usr.sbin/ppp/filter.h
+++ b/usr.sbin/ppp/filter.h
@@ -15,7 +15,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: filter.h,v 1.10 1997/10/26 01:02:35 brian Exp $
+ * $Id: filter.h,v 1.11.2.7 1998/05/01 19:24:30 brian Exp $
*
* TODO:
*/
@@ -60,28 +60,33 @@ struct filterent {
u_short srcport;
short dstop;
u_short dstport;
- int estab;
+ unsigned estab : 1;
+ unsigned syn : 1;
+ unsigned finrst : 1;
} opt;
};
-#define MAXFILTERS 20
+#define MAXFILTERS 20 /* in each filter set */
+
+struct filter {
+ struct filterent rule[MAXFILTERS]; /* incoming packet filter */
+ const char *name;
+ unsigned fragok : 1;
+ unsigned logok : 1;
+};
#define FL_IN 0
#define FL_OUT 1
#define FL_DIAL 2
#define FL_KEEP 3
-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 */
+struct ipcp;
+struct cmdargs;
-extern int ParseAddr(int, char const *const *, struct in_addr *, struct in_addr *, int *);
-extern int ShowIfilter(struct cmdargs const *);
-extern int ShowOfilter(struct cmdargs const *);
-extern int ShowDfilter(struct cmdargs const *);
-extern int ShowAfilter(struct cmdargs const *);
-extern int SetIfilter(struct cmdargs const *);
-extern int SetOfilter(struct cmdargs const *);
-extern int SetDfilter(struct cmdargs const *);
-extern int SetAfilter(struct cmdargs const *);
+extern int ParseAddr(struct ipcp *, int, char const *const *, struct in_addr *,
+ struct in_addr *, int *);
+extern int filter_Show(struct cmdargs const *);
+extern int filter_Set(struct cmdargs const *);
+extern const char * filter_Action2Nam(int);
+extern const char *filter_Proto2Nam(int);
+extern const char *filter_Op2Nam(int);