SCCS-vsn: sys/net/if.c 4.30
SCCS-vsn: sys/net/if.h 4.19
-/* if.c 4.29 83/06/12 */
+/* if.c 4.30 83/06/12 */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
ifr->ifr_flags = ifp->if_flags;
break;
ifr->ifr_flags = ifp->if_flags;
break;
+ case SIOCSIFFLAGS:
+ if (ifp->if_flags & IFF_UP && (ifr->ifr_flags & IFF_UP) == 0) {
+ int s = splimp();
+ if_down(ifp);
+ splx(s);
+ }
+ ifp->if_flags = ifr->ifr_flags;
+ break;
+
default:
if (ifp->if_ioctl == 0)
return (EOPNOTSUPP);
default:
if (ifp->if_ioctl == 0)
return (EOPNOTSUPP);
- return ((*ifp->if_ioctl)(cmd, data));
+ return ((*ifp->if_ioctl)(ifp, cmd, data));
-/* if.h 4.18 83/06/12 */
+/* if.h 4.19 83/06/12 */
/*
* Structures defining a network interface, providing a packet
/*
* Structures defining a network interface, providing a packet
#define IFF_ROUTE 0x8 /* routing entry installed */
#define IFF_POINTOPOINT 0x10 /* interface is point-to-point link */
#define IFF_NOTRAILERS 0x20 /* avoid use of trailers */
#define IFF_ROUTE 0x8 /* routing entry installed */
#define IFF_POINTOPOINT 0x10 /* interface is point-to-point link */
#define IFF_NOTRAILERS 0x20 /* avoid use of trailers */
+#define IFF_RUNNING 0x40 /* resources allocated */
/*
* Output queues (ifp->if_snd) and internetwork datagram level (pup level 1)
/*
* Output queues (ifp->if_snd) and internetwork datagram level (pup level 1)