summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkn <kn@cvs.openbsd.org>2020-07-24 03:20:51 +0000
committerkn <kn@cvs.openbsd.org>2020-07-24 03:20:51 +0000
commitf0ab86a5c68b24261b37755c8d4e015c01a4391d (patch)
treec0d1d6d22d69816e4bfc7704dfa191c6bee9b167
parent6b002fd5b5744e8397280c1e0afa25d6de7fbef0 (diff)
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
-rw-r--r--sys/net/if_tpmr.c17
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)