Nut/OS  4.10.3
API Reference
if.h File Reference

Network interface header file. More...

#include <stdint.h>
Include dependency graph for if.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ifreq
 Interface request structure used for socket ioctl's. More...

Defines

#define IF_NAMESIZE   8
 Length of interface name, including terminating zero character.

Interface Flags

#define IFF_UP   0x00000001
 Interface is up.
#define IFF_BROADCAST   0x00000002
 Broadcast address valid.
#define IFF_DEBUG   0x00000004
 Turn on debugging.
#define IFF_LOOPBACK   0x00000008
 Is a loopback net.
#define IFF_POINTOPOINT   0x00000010
 Is a point-to-point link.
#define IFF_NOARP   0x00000080
 No address resolution protocol.
#define IFF_PROMISC   0x00000100
 Receive all packets.
#define IFF_ALLMULTI   0x00000200
 Receive all multicast packets.
#define IFF_DRV_OACTIVE   0x00000400
 Transmit hardware queue is full.
#define IFF_SIMPLEX   0x00000800
 Can't hear own transmissions.
#define IFF_LINK0   0x00001000
 Per link layer defined bit.
#define IFF_LINK1   0x00002000
 Per link layer defined bit.
#define IFF_LINK2   0x00004000
 Per link layer defined bit.
#define IFF_MULTICAST   0x00008000
 Supports multicast.
#define IFF_PPROMISC   0x00020000
 User-requested promisc mode.
#define IFF_MONITOR   0x00040000
 User-requested monitor mode.
#define IFF_STATICARP   0x00080000
 Static ARP.

Interface Link State

#define LINK_STATE_UNKNOWN   0
#define LINK_STATE_DOWN   1
#define LINK_STATE_UP   2

Detailed Description

Network interface header file.

 *
 * $Log$
 * Revision 1.2  2008/08/11 07:00:19  haraldkipp
 * BSD types replaced by stdint types (feature request #1282721).
 *
 * Revision 1.1  2007/05/02 11:15:31  haraldkipp
 * Socket ioctl functions added. Untested.
 *
 *
 * 

Definition in file if.h.


Define Documentation

#define IF_NAMESIZE   8

Length of interface name, including terminating zero character.

Definition at line 86 of file if.h.

#define IFF_UP   0x00000001

Interface is up.

Definition at line 92 of file if.h.

Referenced by NutNetIfConfig2().

#define IFF_BROADCAST   0x00000002

Broadcast address valid.

Definition at line 93 of file if.h.

#define IFF_DEBUG   0x00000004

Turn on debugging.

Definition at line 94 of file if.h.

#define IFF_LOOPBACK   0x00000008

Is a loopback net.

Definition at line 95 of file if.h.

#define IFF_POINTOPOINT   0x00000010

Is a point-to-point link.

Definition at line 96 of file if.h.

#define IFF_NOARP   0x00000080

No address resolution protocol.

Definition at line 97 of file if.h.

#define IFF_PROMISC   0x00000100

Receive all packets.

Definition at line 98 of file if.h.

#define IFF_ALLMULTI   0x00000200

Receive all multicast packets.

Definition at line 99 of file if.h.

#define IFF_DRV_OACTIVE   0x00000400

Transmit hardware queue is full.

Definition at line 100 of file if.h.

#define IFF_SIMPLEX   0x00000800

Can't hear own transmissions.

Definition at line 101 of file if.h.

#define IFF_LINK0   0x00001000

Per link layer defined bit.

Definition at line 102 of file if.h.

#define IFF_LINK1   0x00002000

Per link layer defined bit.

Definition at line 103 of file if.h.

#define IFF_LINK2   0x00004000

Per link layer defined bit.

Definition at line 104 of file if.h.

#define IFF_MULTICAST   0x00008000

Supports multicast.

Definition at line 105 of file if.h.

#define IFF_PPROMISC   0x00020000

User-requested promisc mode.

Definition at line 106 of file if.h.

#define IFF_MONITOR   0x00040000

User-requested monitor mode.

Definition at line 107 of file if.h.

#define IFF_STATICARP   0x00080000

Static ARP.

Definition at line 108 of file if.h.

#define LINK_STATE_UNKNOWN   0

Definition at line 115 of file if.h.

#define LINK_STATE_DOWN   1

Definition at line 116 of file if.h.

#define LINK_STATE_UP   2

Definition at line 117 of file if.h.