From cca0aa0677fc40e23612d4afa267939656dd3a9b Mon Sep 17 00:00:00 2001 From: dlg Date: Wed, 16 Oct 2024 11:03:55 +0000 Subject: [PATCH] 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@ --- sys/net/if_tun.c | 6 +----- 1 file changed, 1 insertion(+), 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; -- 2.20.1