1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-24 14:14:37 +00:00

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@
This commit is contained in:
dlg
2024-10-16 11:03:55 +00:00
parent 9a67f0c9d9
commit cca0aa0677

View File

@@ -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;