if.h (2168) | if.h (3274) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)if.h 8.1 (Berkeley) 6/10/93 | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)if.h 8.1 (Berkeley) 6/10/93 |
34 * $Id: if.h,v 1.5 1994/08/18 22:35:20 wollman Exp $ | 34 * $Id: if.h,v 1.6 1994/08/21 05:11:40 paul Exp $ |
35 */ 36 37#ifndef _NET_IF_H_ 38#define _NET_IF_H_ 39 40/* 41 * Structures defining a network interface, providing a packet 42 * transport mechanism (ala level 0 of the PUP protocols). --- 127 unchanged lines hidden (view full) --- 170#define IFF_NOARP 0x80 /* no address resolution protocol */ 171#define IFF_PROMISC 0x100 /* receive all packets */ 172#define IFF_ALLMULTI 0x200 /* receive all multicast packets */ 173#define IFF_OACTIVE 0x400 /* transmission in progress */ 174#define IFF_SIMPLEX 0x800 /* can't hear own transmissions */ 175#define IFF_LINK0 0x1000 /* per link layer defined bit */ 176#define IFF_LINK1 0x2000 /* per link layer defined bit */ 177#define IFF_LINK2 0x4000 /* per link layer defined bit */ | 35 */ 36 37#ifndef _NET_IF_H_ 38#define _NET_IF_H_ 39 40/* 41 * Structures defining a network interface, providing a packet 42 * transport mechanism (ala level 0 of the PUP protocols). --- 127 unchanged lines hidden (view full) --- 170#define IFF_NOARP 0x80 /* no address resolution protocol */ 171#define IFF_PROMISC 0x100 /* receive all packets */ 172#define IFF_ALLMULTI 0x200 /* receive all multicast packets */ 173#define IFF_OACTIVE 0x400 /* transmission in progress */ 174#define IFF_SIMPLEX 0x800 /* can't hear own transmissions */ 175#define IFF_LINK0 0x1000 /* per link layer defined bit */ 176#define IFF_LINK1 0x2000 /* per link layer defined bit */ 177#define IFF_LINK2 0x4000 /* per link layer defined bit */ |
178#define IFF_ALTPHYS IFF_LINK2 /* use alternate physical connection */ |
|
178#define IFF_MULTICAST 0x8000 /* supports multicast */ 179 180/* flags set internally only: */ 181#define IFF_CANTCHANGE \ 182 (IFF_BROADCAST|IFF_POINTOPOINT|IFF_RUNNING|IFF_OACTIVE|\ 183 IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI) 184 185/* --- 186 unchanged lines hidden --- | 179#define IFF_MULTICAST 0x8000 /* supports multicast */ 180 181/* flags set internally only: */ 182#define IFF_CANTCHANGE \ 183 (IFF_BROADCAST|IFF_POINTOPOINT|IFF_RUNNING|IFF_OACTIVE|\ 184 IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI) 185 186/* --- 186 unchanged lines hidden --- |