summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2024-10-16 11:03:56 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2024-10-16 11:03:56 +0000
commit5c34a43079c63e29de474d12232db914b4abedf3 (patch)
treeb881001b688067786a8ce7fedc7104bde1f88a18 /sys
parent0883f7479ea7edadf5212fd1143c8a8ffb578b1e (diff)
remove SIOCSIFDSTADDR from the network ioctls.
netintro says it's deprecated, and most of our other drivers are doing fine without it. ok miod@ kn@ patrick@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_tun.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index f25e3c239bd..577b018c65f 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tun.c,v 1.241 2024/10/10 06:50:58 dlg Exp $ */
+/* $OpenBSD: if_tun.c,v 1.242 2024/10/16 11:03:55 dlg Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
@@ -599,10 +599,6 @@ tun_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
CLR(ifp->if_flags, IFF_RUNNING);
break;
- case SIOCSIFDSTADDR:
- tun_init(sc);
- TUNDEBUG(("%s: destination address set\n", ifp->if_xname));
- break;
case SIOCSIFMTU:
if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > TUNMRU)
error = EINVAL;