return EPNOTSUPP for SIOCGLIFPHYTTL and SIOCGVNETID. all so drivers
dont have to do these checks themselves.
ok mikeb@ mpi@
-/* $OpenBSD: if.c,v 1.386 2015/10/08 09:51:00 mpi Exp $ */
+/* $OpenBSD: if.c,v 1.387 2015/10/12 10:49:40 dlg Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
#endif
case SIOCSLIFPHYADDR:
case SIOCSLIFPHYRTABLE:
+ case SIOCSLIFPHYTTL:
case SIOCADDMULTI:
case SIOCDELMULTI:
case SIOCSIFMEDIA:
+ case SIOCSVNETID:
if ((error = suser(p, 0)) != 0)
return (error);
/* FALLTHROUGH */
case SIOCGIFPDSTADDR:
case SIOCGLIFPHYADDR:
case SIOCGLIFPHYRTABLE:
+ case SIOCGLIFPHYTTL:
case SIOCGIFMEDIA:
+ case SIOCGVNETID:
if (ifp->if_ioctl == 0)
return (EOPNOTSUPP);
error = (*ifp->if_ioctl)(ifp, cmd, data);