diff options
| author | Brian Somers <brian@FreeBSD.org> | 1999-09-30 07:23:13 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1999-09-30 07:23:13 +0000 |
| commit | 28149effa71a5df0a40d7f226ced571adc8fdf5c (patch) | |
| tree | 920605d02c3613f1e2d0e4a22eaf170a457ec42b /usr.sbin/ppp/filter.c | |
| parent | b89392e703d5c84382872dfba236bebc6672eaa6 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/ppp/filter.c')
| -rw-r--r-- | usr.sbin/ppp/filter.c | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/usr.sbin/ppp/filter.c b/usr.sbin/ppp/filter.c index 16694665bcf38..217c177fbf784 100644 --- a/usr.sbin/ppp/filter.c +++ b/usr.sbin/ppp/filter.c @@ -277,6 +277,24 @@ ParseIgmp(int argc, char const * const *argv, struct filterent *tgt) return 1; } +#ifdef P_GRE +static int +ParseGRE(int argc, char const * const *argv, struct filterent *tgt) +{ + /* + * Filter currently is a catch-all. Requests are either permitted or + * dropped. + */ + if (argc != 0) { + log_Printf(LogWARN, "ParseGRE: Too many parameters\n"); + return 0; + } else + tgt->f_srcop = OP_NONE; + + return 1; +} +#endif + #ifdef P_OSPF static int ParseOspf(int argc, char const * const *argv, struct filterent *tgt) @@ -458,6 +476,11 @@ Parse(struct ipcp *ipcp, int argc, char const *const *argv, val = ParseOspf(argc, argv, &filterdata); break; #endif +#ifdef P_GRE + case P_GRE: + val = ParseGRE(argc, argv, &filterdata); + break; +#endif } log_Printf(LogDEBUG, "Parse: Src: %s\n", inet_ntoa(filterdata.f_src.ipaddr)); @@ -596,7 +619,7 @@ filter_Show(struct cmdargs const *arg) } static const char *protoname[] = { - "none", "tcp", "udp", "icmp", "ospf", "igmp" + "none", "tcp", "udp", "icmp", "ospf", "igmp", "gre" }; const char * |
