if.h (216267) | if.h (216268) |
---|---|
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 216267 2010-12-07 20:23:47Z weongyo $ | 30 * $FreeBSD: head/sys/net/if.h 216268 2010-12-07 20:31:04Z weongyo $ |
31 */ 32 33#ifndef _NET_IF_H_ 34#define _NET_IF_H_ 35 36#include <sys/cdefs.h> 37 38#ifdef _KERNEL --- 121 unchanged lines hidden (view full) --- 160#define IFF_RUNNING IFF_DRV_RUNNING 161#define IFF_OACTIVE IFF_DRV_OACTIVE 162#endif 163 164/* flags set internally only: */ 165#define IFF_CANTCHANGE \ 166 (IFF_BROADCAST|IFF_POINTOPOINT|IFF_DRV_RUNNING|IFF_DRV_OACTIVE|\ 167 IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI|IFF_SMART|IFF_PROMISC|\ | 31 */ 32 33#ifndef _NET_IF_H_ 34#define _NET_IF_H_ 35 36#include <sys/cdefs.h> 37 38#ifdef _KERNEL --- 121 unchanged lines hidden (view full) --- 160#define IFF_RUNNING IFF_DRV_RUNNING 161#define IFF_OACTIVE IFF_DRV_OACTIVE 162#endif 163 164/* flags set internally only: */ 165#define IFF_CANTCHANGE \ 166 (IFF_BROADCAST|IFF_POINTOPOINT|IFF_DRV_RUNNING|IFF_DRV_OACTIVE|\ 167 IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI|IFF_SMART|IFF_PROMISC|\ |
168 IFF_DYING) | 168 IFF_DYING|IFF_CANTCONFIG) |
169 170/* 171 * Values for if_link_state. 172 */ 173#define LINK_STATE_UNKNOWN 0 /* link invalid/unknown */ 174#define LINK_STATE_DOWN 1 /* link is down */ 175#define LINK_STATE_UP 2 /* link is up */ 176 --- 289 unchanged lines hidden --- | 169 170/* 171 * Values for if_link_state. 172 */ 173#define LINK_STATE_UNKNOWN 0 /* link invalid/unknown */ 174#define LINK_STATE_DOWN 1 /* link is down */ 175#define LINK_STATE_UP 2 /* link is up */ 176 --- 289 unchanged lines hidden --- |