Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if.h
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | |||||
* (d) if_drv_flags field written only by the device driver, read by either | * (d) if_drv_flags field written only by the device driver, read by either | ||||
* the stack or driver. | * the stack or driver. | ||||
*/ | */ | ||||
#define IFF_UP 0x1 /* (n) interface is up */ | #define IFF_UP 0x1 /* (n) interface is up */ | ||||
#define IFF_BROADCAST 0x2 /* (i) broadcast address valid */ | #define IFF_BROADCAST 0x2 /* (i) broadcast address valid */ | ||||
#define IFF_DEBUG 0x4 /* (n) turn on debugging */ | #define IFF_DEBUG 0x4 /* (n) turn on debugging */ | ||||
#define IFF_LOOPBACK 0x8 /* (i) is a loopback net */ | #define IFF_LOOPBACK 0x8 /* (i) is a loopback net */ | ||||
#define IFF_POINTOPOINT 0x10 /* (i) is a point-to-point link */ | #define IFF_POINTOPOINT 0x10 /* (i) is a point-to-point link */ | ||||
#define IFF_NEEDSEPOCH 0x20 /* (i) calls if_input w/o epoch */ | #define IFF_KNOWSEPOCH 0x20 /* (i) calls if_input in net epoch */ | ||||
#define IFF_DRV_RUNNING 0x40 /* (d) resources allocated */ | #define IFF_DRV_RUNNING 0x40 /* (d) resources allocated */ | ||||
#define IFF_NOARP 0x80 /* (n) no address resolution protocol */ | #define IFF_NOARP 0x80 /* (n) no address resolution protocol */ | ||||
#define IFF_PROMISC 0x100 /* (n) receive all packets */ | #define IFF_PROMISC 0x100 /* (n) receive all packets */ | ||||
#define IFF_ALLMULTI 0x200 /* (n) receive all multicast packets */ | #define IFF_ALLMULTI 0x200 /* (n) receive all multicast packets */ | ||||
#define IFF_DRV_OACTIVE 0x400 /* (d) tx hardware queue is full */ | #define IFF_DRV_OACTIVE 0x400 /* (d) tx hardware queue is full */ | ||||
#define IFF_SIMPLEX 0x800 /* (i) can't hear own transmissions */ | #define IFF_SIMPLEX 0x800 /* (i) can't hear own transmissions */ | ||||
#define IFF_LINK0 0x1000 /* per link layer defined bit */ | #define IFF_LINK0 0x1000 /* per link layer defined bit */ | ||||
#define IFF_LINK1 0x2000 /* per link layer defined bit */ | #define IFF_LINK1 0x2000 /* per link layer defined bit */ | ||||
Show All 17 Lines | |||||
#define IFF_RUNNING IFF_DRV_RUNNING | #define IFF_RUNNING IFF_DRV_RUNNING | ||||
#define IFF_OACTIVE IFF_DRV_OACTIVE | #define IFF_OACTIVE IFF_DRV_OACTIVE | ||||
#endif | #endif | ||||
/* flags set internally only: */ | /* flags set internally only: */ | ||||
#define IFF_CANTCHANGE \ | #define IFF_CANTCHANGE \ | ||||
(IFF_BROADCAST|IFF_POINTOPOINT|IFF_DRV_RUNNING|IFF_DRV_OACTIVE|\ | (IFF_BROADCAST|IFF_POINTOPOINT|IFF_DRV_RUNNING|IFF_DRV_OACTIVE|\ | ||||
IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI|IFF_PROMISC|\ | IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI|IFF_PROMISC|\ | ||||
IFF_DYING|IFF_CANTCONFIG) | IFF_DYING|IFF_CANTCONFIG|IFF_KNOWSEPOCH) | ||||
/* | /* | ||||
* Values for if_link_state. | * Values for if_link_state. | ||||
*/ | */ | ||||
#define LINK_STATE_UNKNOWN 0 /* link invalid/unknown */ | #define LINK_STATE_UNKNOWN 0 /* link invalid/unknown */ | ||||
#define LINK_STATE_DOWN 1 /* link is down */ | #define LINK_STATE_DOWN 1 /* link is down */ | ||||
#define LINK_STATE_UP 2 /* link is up */ | #define LINK_STATE_UP 2 /* link is up */ | ||||
▲ Show 20 Lines • Show All 431 Lines • Show Last 20 Lines |