diff options
author | kn <kn@cvs.openbsd.org> | 2020-07-29 12:07:59 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2020-07-29 12:07:59 +0000 |
commit | 24d5e95d0ec47bdd148ae2ec99580c9e3a45d843 (patch) | |
tree | 90c68a6e8b998e6a4e178828d1c356f33d91c230 /sys/net | |
parent | 5e803e86454cacf2e06ce1d44fe4cc7cf29092f9 (diff) |
Remove SIOCSIFADDR
It serves no purpose and is deprecated as per netintro(4).
ifconfig(8) output improves as well:
# ifconfig tpmr0 inet6 2001:db8::1
-ifconfig: SIOCAIFADDR: Address family not supported by protocol family
+ifconfig: SIOCAIFADDR: Inappropriate ioctl for device
OK dlg
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_tpmr.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/net/if_tpmr.c b/sys/net/if_tpmr.c index 6b1403c6906..f3d298fa65f 100644 --- a/sys/net/if_tpmr.c +++ b/sys/net/if_tpmr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tpmr.c,v 1.18 2020/07/28 07:41:19 kn Exp $ */ +/* $OpenBSD: if_tpmr.c,v 1.19 2020/07/29 12:07:58 kn Exp $ */ /* * Copyright (c) 2019 The University of Queensland @@ -410,10 +410,6 @@ tpmr_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) return (ENXIO); switch (cmd) { - case SIOCSIFADDR: - error = EAFNOSUPPORT; - break; - case SIOCSIFFLAGS: if (ISSET(ifp->if_flags, IFF_UP)) { if (!ISSET(ifp->if_flags, IFF_RUNNING)) |