summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2021-03-17 18:53:25 +0000
committerkn <kn@openbsd.org>2021-03-17 18:53:25 +0000
commite01709ffea3a4bda29bb681278a785410af30596 (patch)
tree2c6adc985db1ef6c70f9087b1e857add131b74ba
parentRead ahead is now enforced for DTLS - remove workarounds. (diff)
downloadwireguard-openbsd-e01709ffea3a4bda29bb681278a785410af30596.tar.xz
wireguard-openbsd-e01709ffea3a4bda29bb681278a785410af30596.zip
Make "ifconfig mpw0 -mplslabel" work
Code is there, noone ever used it, I guess. This makes ifconfig(8) documentation actually hold true. OK claudio
-rw-r--r--sys/net/if_mpw.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if_mpw.c b/sys/net/if_mpw.c
index 6932c6c2a93..e9538502bf9 100644
--- a/sys/net/if_mpw.c
+++ b/sys/net/if_mpw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mpw.c,v 1.60 2021/03/17 14:30:08 kn Exp $ */
+/* $OpenBSD: if_mpw.c,v 1.61 2021/03/17 18:53:25 kn Exp $ */
/*
* Copyright (c) 2015 Rafael Zalamena <rzalamena@openbsd.org>
@@ -443,6 +443,9 @@ mpw_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
break;
error = mpw_set_label(sc, &shim);
break;
+ case SIOCDELLABEL:
+ error = mpw_del_label(sc);
+ break;
case SIOCSETMPWCFG:
error = mpw_set_config(sc, ifr);