aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/filter.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2001-04-24 02:13:34 +0000
committerBrian Somers <brian@FreeBSD.org>2001-04-24 02:13:34 +0000
commitda70ad60813b4285bebb2a5b82ff86ffffacb865 (patch)
tree5503a1ce2a12615f7a2a54358261eeff29b0ff77 /usr.sbin/ppp/filter.c
parent33a9ed9d0e26ec60b5237d33dc09026841b9bf67 (diff)
Notes
Diffstat (limited to 'usr.sbin/ppp/filter.c')
-rw-r--r--usr.sbin/ppp/filter.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/ppp/filter.c b/usr.sbin/ppp/filter.c
index 99c36eedc0c4..bee102173342 100644
--- a/usr.sbin/ppp/filter.c
+++ b/usr.sbin/ppp/filter.c
@@ -153,6 +153,9 @@ ParsePort(const char *service, int proto)
int port;
switch (proto) {
+ case P_IPIP:
+ protocol_name = "ipip";
+ break;
case P_UDP:
protocol_name = "udp";
break;
@@ -483,6 +486,9 @@ Parse(struct ipcp *ipcp, int argc, char const *const *argv,
case P_UDP:
val = ParseUdpOrTcp(argc, argv, P_UDP, &filterdata);
break;
+ case P_IPIP:
+ val = ParseUdpOrTcp(argc, argv, P_IPIP, &filterdata);
+ break;
case P_ICMP:
val = ParseIcmp(argc, argv, &filterdata);
break;
@@ -641,7 +647,7 @@ filter_Show(struct cmdargs const *arg)
}
static const char * const protoname[] = {
- "none", "tcp", "udp", "icmp", "ospf", "igmp", "gre"
+ "none", "tcp", "udp", "icmp", "ospf", "igmp", "gre", "ipip"
};
const char *