Deleted Added
full compact
if.h (191253) if.h (191416)
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

--- 13 unchanged lines hidden (view full) ---

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)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

--- 13 unchanged lines hidden (view full) ---

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)if.h 8.1 (Berkeley) 6/10/93
30 * $FreeBSD: head/sys/net/if.h 191253 2009-04-18 20:39:17Z rwatson $
30 * $FreeBSD: head/sys/net/if.h 191416 2009-04-23 09:32:30Z rwatson $
31 */
32
33#ifndef _NET_IF_H_
34#define _NET_IF_H_
35
36#include <sys/cdefs.h>
37
38#ifdef _KERNEL

--- 105 unchanged lines hidden (view full) ---

144#define IFF_LINK1 0x2000 /* per link layer defined bit */
145#define IFF_LINK2 0x4000 /* per link layer defined bit */
146#define IFF_ALTPHYS IFF_LINK2 /* use alternate physical connection */
147#define IFF_MULTICAST 0x8000 /* (i) supports multicast */
148/* 0x10000 */
149#define IFF_PPROMISC 0x20000 /* (n) user-requested promisc mode */
150#define IFF_MONITOR 0x40000 /* (n) user-requested monitor mode */
151#define IFF_STATICARP 0x80000 /* (n) static ARP */
31 */
32
33#ifndef _NET_IF_H_
34#define _NET_IF_H_
35
36#include <sys/cdefs.h>
37
38#ifdef _KERNEL

--- 105 unchanged lines hidden (view full) ---

144#define IFF_LINK1 0x2000 /* per link layer defined bit */
145#define IFF_LINK2 0x4000 /* per link layer defined bit */
146#define IFF_ALTPHYS IFF_LINK2 /* use alternate physical connection */
147#define IFF_MULTICAST 0x8000 /* (i) supports multicast */
148/* 0x10000 */
149#define IFF_PPROMISC 0x20000 /* (n) user-requested promisc mode */
150#define IFF_MONITOR 0x40000 /* (n) user-requested monitor mode */
151#define IFF_STATICARP 0x80000 /* (n) static ARP */
152#define IFF_DYING 0x200000 /* (n) interface is winding down */
152
153/*
154 * Old names for driver flags so that user space tools can continue to use
155 * the old (portable) names.
156 */
157#ifndef _KERNEL
158#define IFF_RUNNING IFF_DRV_RUNNING
159#define IFF_OACTIVE IFF_DRV_OACTIVE
160#endif
161
162/* flags set internally only: */
163#define IFF_CANTCHANGE \
164 (IFF_BROADCAST|IFF_POINTOPOINT|IFF_DRV_RUNNING|IFF_DRV_OACTIVE|\
153
154/*
155 * Old names for driver flags so that user space tools can continue to use
156 * the old (portable) names.
157 */
158#ifndef _KERNEL
159#define IFF_RUNNING IFF_DRV_RUNNING
160#define IFF_OACTIVE IFF_DRV_OACTIVE
161#endif
162
163/* flags set internally only: */
164#define IFF_CANTCHANGE \
165 (IFF_BROADCAST|IFF_POINTOPOINT|IFF_DRV_RUNNING|IFF_DRV_OACTIVE|\
165 IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI|IFF_SMART|IFF_PROMISC)
166 IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI|IFF_SMART|IFF_PROMISC|\
167 IFF_DYING)
166
167/*
168 * Values for if_link_state.
169 */
170#define LINK_STATE_UNKNOWN 0 /* link invalid/unknown */
171#define LINK_STATE_DOWN 1 /* link is down */
172#define LINK_STATE_UP 2 /* link is up */
173

--- 284 unchanged lines hidden ---
168
169/*
170 * Values for if_link_state.
171 */
172#define LINK_STATE_UNKNOWN 0 /* link invalid/unknown */
173#define LINK_STATE_DOWN 1 /* link is down */
174#define LINK_STATE_UP 2 /* link is up */
175

--- 284 unchanged lines hidden ---