diff options
author | 2020-07-24 03:20:50 +0000 | |
---|---|---|
committer | 2020-07-24 03:20:50 +0000 | |
commit | cf6ca2c86fa600f3712059561d61f54a6ead0d6d (patch) | |
tree | 8b3a921108f2f483a25dc831d6e4a23c52fd4846 /sys/net/if_tpmr.c | |
parent | Regular expression support in RS is an extension. (diff) | |
download | wireguard-openbsd-cf6ca2c86fa600f3712059561d61f54a6ead0d6d.tar.xz wireguard-openbsd-cf6ca2c86fa600f3712059561d61f54a6ead0d6d.zip |
Remove lacpmode and lacptimeout bits
ifconfig(8) commands "lacptimeout 1" and "lacpmode active" error out with
"ifconfig: Invalid option for trunk: tpmr0"; tpmr(4) has no mode or config,
so these ioctls are inappropiate in the first place.
Remove SIOCSTRUNKOPTS, SIOCGTRUNKOPTS stubs and now unused <net/if_trunk.h>.
OK dlg
Diffstat (limited to 'sys/net/if_tpmr.c')
-rw-r--r-- | sys/net/if_tpmr.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/net/if_tpmr.c b/sys/net/if_tpmr.c index 26a4661f147..8f1febce63c 100644 --- a/sys/net/if_tpmr.c +++ b/sys/net/if_tpmr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tpmr.c,v 1.16 2020/07/24 00:45:40 kn Exp $ */ +/* $OpenBSD: if_tpmr.c,v 1.17 2020/07/24 03:20:50 kn Exp $ */ /* * Copyright (c) 2019 The University of Queensland @@ -49,9 +49,6 @@ #include <netinet/if_ether.h> #include <net/if_bridge.h> -#include <net/if_media.h> /* if_trunk.h uses ifmedia bits */ -#include <crypto/siphash.h> /* if_trunk.h uses siphash bits */ -#include <net/if_trunk.h> #if NBPFILTER > 0 #include <net/bpf.h> @@ -76,7 +73,6 @@ static const uint8_t ether_8021_prefix[ETHER_ADDR_LEN - 1] = */ #define TPMR_NUM_PORTS 2 -#define TPMR_TRUNK_PROTO TRUNK_PROTO_NONE struct tpmr_softc; @@ -427,17 +423,6 @@ tpmr_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) } break; - case SIOCSTRUNKOPTS: - error = suser(curproc); - if (error != 0) - break; - - error = EPROTONOSUPPORT; - break; - - case SIOCGTRUNKOPTS: - break; - case SIOCBRDGADD: error = suser(curproc); if (error != 0) |