summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2008-05-08 07:18:47 +0000
committerclaudio <claudio@openbsd.org>2008-05-08 07:18:47 +0000
commitbb9fbefffb1716826ec68ac6dcdfdb794121f8a0 (patch)
tree02f0dc39daf3b908643fdd2bd84162844ce6af3f /usr.bin/netstat
parentspace (diff)
downloadwireguard-openbsd-bb9fbefffb1716826ec68ac6dcdfdb794121f8a0.tar.xz
wireguard-openbsd-bb9fbefffb1716826ec68ac6dcdfdb794121f8a0.zip
make -f mpls work. OK norby@
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index 59694aec8b2..d3737f7e813 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.74 2008/01/03 21:01:40 claudio Exp $ */
+/* $OpenBSD: main.c,v 1.75 2008/05/08 07:18:47 claudio Exp $ */
/* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */
/*
@@ -187,6 +187,8 @@ main(int argc, char *argv[])
af = PF_KEY;
else if (strcmp(optarg, "atalk") == 0)
af = AF_APPLETALK;
+ else if (strcmp(optarg, "mpls") == 0)
+ af = AF_MPLS;
else if (strcmp(optarg, "mask") == 0)
af = 0xff;
else {