Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Variables
if_link.h File Reference
#include <linux/types.h>
#include <linux/netlink.h>

Go to the source code of this file.

Data Structures

struct  rtnl_link_stats
 
struct  rtnl_link_stats64
 
struct  rtnl_link_ifmap
 
struct  ifla_cacheinfo
 
struct  ifla_vlan_flags
 
struct  ifla_vlan_qos_mapping
 
struct  ifla_vxlan_port_range
 
struct  ifla_vf_mac
 
struct  ifla_vf_vlan
 
struct  ifla_vf_tx_rate
 
struct  ifla_vf_spoofchk
 
struct  ifla_port_vsi
 

Macros

#define IFLA_COST   IFLA_COST
 
#define IFLA_PRIORITY   IFLA_PRIORITY
 
#define IFLA_MASTER   IFLA_MASTER
 
#define IFLA_WIRELESS   IFLA_WIRELESS
 
#define IFLA_PROTINFO   IFLA_PROTINFO
 
#define IFLA_TXQLEN   IFLA_TXQLEN
 
#define IFLA_MAP   IFLA_MAP
 
#define IFLA_WEIGHT   IFLA_WEIGHT
 
#define IFLA_LINKINFO   IFLA_LINKINFO
 
#define IFLA_PROMISCUITY   IFLA_PROMISCUITY
 
#define IFLA_MAX   (__IFLA_MAX - 1)
 
#define IFLA_RTA(r)   ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
 
#define IFLA_PAYLOAD(n)   NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
 
#define IFLA_INET_MAX   (__IFLA_INET_MAX - 1)
 
#define IFLA_INET6_MAX   (__IFLA_INET6_MAX - 1)
 
#define IFLA_INFO_MAX   (__IFLA_INFO_MAX - 1)
 
#define IFLA_VLAN_MAX   (__IFLA_VLAN_MAX - 1)
 
#define IFLA_VLAN_QOS_MAX   (__IFLA_VLAN_QOS_MAX - 1)
 
#define IFLA_MACVLAN_MAX   (__IFLA_MACVLAN_MAX - 1)
 
#define MACVLAN_FLAG_NOPROMISC   1
 
#define IFLA_VXLAN_MAX   (__IFLA_VXLAN_MAX - 1)
 
#define IFLA_VF_INFO_MAX   (__IFLA_VF_INFO_MAX - 1)
 
#define IFLA_VF_MAX   (__IFLA_VF_MAX - 1)
 
#define IFLA_VF_PORT_MAX   (__IFLA_VF_PORT_MAX - 1)
 
#define IFLA_PORT_MAX   (__IFLA_PORT_MAX - 1)
 
#define PORT_PROFILE_MAX   40
 
#define PORT_UUID_MAX   16
 
#define PORT_SELF_VF   -1
 
#define IFLA_IPOIB_MAX   (__IFLA_IPOIB_MAX - 1)
 

Enumerations

enum  {
  IFLA_UNSPEC, IFLA_ADDRESS, IFLA_BROADCAST, IFLA_IFNAME,
  IFLA_MTU, IFLA_LINK, IFLA_QDISC, IFLA_STATS,
  IFLA_COST, IFLA_COST, IFLA_PRIORITY, IFLA_PRIORITY,
  IFLA_MASTER, IFLA_MASTER, IFLA_WIRELESS, IFLA_WIRELESS,
  IFLA_PROTINFO, IFLA_PROTINFO, IFLA_TXQLEN, IFLA_TXQLEN,
  IFLA_MAP, IFLA_MAP, IFLA_WEIGHT, IFLA_WEIGHT,
  IFLA_OPERSTATE, IFLA_LINKMODE, IFLA_LINKINFO, IFLA_LINKINFO,
  IFLA_NET_NS_PID, IFLA_IFALIAS, IFLA_NUM_VF, IFLA_VFINFO_LIST,
  IFLA_STATS64, IFLA_VF_PORTS, IFLA_PORT_SELF, IFLA_AF_SPEC,
  IFLA_GROUP, IFLA_NET_NS_FD, IFLA_EXT_MASK, IFLA_PROMISCUITY,
  IFLA_PROMISCUITY, IFLA_NUM_TX_QUEUES, IFLA_NUM_RX_QUEUES, __IFLA_MAX
}
 
enum  { IFLA_INET_UNSPEC, IFLA_INET_CONF, __IFLA_INET_MAX }
 
enum  {
  IFLA_INET6_UNSPEC, IFLA_INET6_FLAGS, IFLA_INET6_CONF, IFLA_INET6_STATS,
  IFLA_INET6_MCAST, IFLA_INET6_CACHEINFO, IFLA_INET6_ICMP6STATS, __IFLA_INET6_MAX
}
 
enum  {
  IFLA_INFO_UNSPEC, IFLA_INFO_KIND, IFLA_INFO_DATA, IFLA_INFO_XSTATS,
  __IFLA_INFO_MAX
}
 
enum  {
  IFLA_VLAN_UNSPEC, IFLA_VLAN_ID, IFLA_VLAN_FLAGS, IFLA_VLAN_EGRESS_QOS,
  IFLA_VLAN_INGRESS_QOS, __IFLA_VLAN_MAX
}
 
enum  { IFLA_VLAN_QOS_UNSPEC, IFLA_VLAN_QOS_MAPPING, __IFLA_VLAN_QOS_MAX }
 
enum  { IFLA_MACVLAN_UNSPEC, IFLA_MACVLAN_MODE, IFLA_MACVLAN_FLAGS, __IFLA_MACVLAN_MAX }
 
enum  macvlan_mode { MACVLAN_MODE_PRIVATE = 1, MACVLAN_MODE_VEPA = 2, MACVLAN_MODE_BRIDGE = 4, MACVLAN_MODE_PASSTHRU = 8 }
 
enum  {
  IFLA_VXLAN_UNSPEC, IFLA_VXLAN_ID, IFLA_VXLAN_GROUP, IFLA_VXLAN_LINK,
  IFLA_VXLAN_LOCAL, IFLA_VXLAN_TTL, IFLA_VXLAN_TOS, IFLA_VXLAN_LEARNING,
  IFLA_VXLAN_AGEING, IFLA_VXLAN_LIMIT, IFLA_VXLAN_PORT_RANGE, __IFLA_VXLAN_MAX
}
 
enum  { IFLA_VF_INFO_UNSPEC, IFLA_VF_INFO, __IFLA_VF_INFO_MAX }
 
enum  {
  IFLA_VF_UNSPEC, IFLA_VF_MAC, IFLA_VF_VLAN, IFLA_VF_TX_RATE,
  IFLA_VF_SPOOFCHK, __IFLA_VF_MAX
}
 
enum  { IFLA_VF_PORT_UNSPEC, IFLA_VF_PORT, __IFLA_VF_PORT_MAX }
 
enum  {
  IFLA_PORT_UNSPEC, IFLA_PORT_VF, IFLA_PORT_PROFILE, IFLA_PORT_VSI_TYPE,
  IFLA_PORT_INSTANCE_UUID, IFLA_PORT_HOST_UUID, IFLA_PORT_REQUEST, IFLA_PORT_RESPONSE,
  __IFLA_PORT_MAX
}
 
enum  { PORT_REQUEST_PREASSOCIATE = 0, PORT_REQUEST_PREASSOCIATE_RR, PORT_REQUEST_ASSOCIATE, PORT_REQUEST_DISASSOCIATE }
 
enum  {
  PORT_VDP_RESPONSE_SUCCESS = 0, PORT_VDP_RESPONSE_INVALID_FORMAT, PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES, PORT_VDP_RESPONSE_UNUSED_VTID,
  PORT_VDP_RESPONSE_VTID_VIOLATION, PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION, PORT_VDP_RESPONSE_OUT_OF_SYNC, PORT_PROFILE_RESPONSE_SUCCESS = 0x100,
  PORT_PROFILE_RESPONSE_INPROGRESS, PORT_PROFILE_RESPONSE_INVALID, PORT_PROFILE_RESPONSE_BADSTATE, PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES,
  PORT_PROFILE_RESPONSE_ERROR
}
 
enum  {
  IFLA_IPOIB_UNSPEC, IFLA_IPOIB_PKEY, IFLA_IPOIB_MODE, IFLA_IPOIB_UMCAST,
  __IFLA_IPOIB_MAX
}
 
enum  { IPOIB_MODE_DATAGRAM = 0, IPOIB_MODE_CONNECTED = 1 }
 

Variables

struct rtnl_link_stats __attribute__
 

Macro Definition Documentation

#define IFLA_COST   IFLA_COST

Definition at line 111 of file if_link.h.

#define IFLA_INET6_MAX   (__IFLA_INET6_MAX - 1)

Definition at line 206 of file if_link.h.

#define IFLA_INET_MAX   (__IFLA_INET_MAX - 1)

Definition at line 163 of file if_link.h.

#define IFLA_INFO_MAX   (__IFLA_INFO_MAX - 1)

Definition at line 223 of file if_link.h.

#define IFLA_IPOIB_MAX   (__IFLA_IPOIB_MAX - 1)

Definition at line 427 of file if_link.h.

#define IFLA_LINKINFO   IFLA_LINKINFO

Definition at line 129 of file if_link.h.

#define IFLA_MACVLAN_MAX   (__IFLA_MACVLAN_MAX - 1)

Definition at line 264 of file if_link.h.

#define IFLA_MAP   IFLA_MAP

Definition at line 123 of file if_link.h.

#define IFLA_MASTER   IFLA_MASTER

Definition at line 115 of file if_link.h.

#define IFLA_MAX   (__IFLA_MAX - 1)

Definition at line 149 of file if_link.h.

#define IFLA_PAYLOAD (   n)    NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))

Definition at line 154 of file if_link.h.

#define IFLA_PORT_MAX   (__IFLA_PORT_MAX - 1)

Definition at line 374 of file if_link.h.

#define IFLA_PRIORITY   IFLA_PRIORITY

Definition at line 113 of file if_link.h.

#define IFLA_PROMISCUITY   IFLA_PROMISCUITY

Definition at line 142 of file if_link.h.

#define IFLA_PROTINFO   IFLA_PROTINFO

Definition at line 119 of file if_link.h.

#define IFLA_RTA (   r)    ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))

Definition at line 153 of file if_link.h.

#define IFLA_TXQLEN   IFLA_TXQLEN

Definition at line 121 of file if_link.h.

#define IFLA_VF_INFO_MAX   (__IFLA_VF_INFO_MAX - 1)

Definition at line 305 of file if_link.h.

#define IFLA_VF_MAX   (__IFLA_VF_MAX - 1)

Definition at line 316 of file if_link.h.

#define IFLA_VF_PORT_MAX   (__IFLA_VF_PORT_MAX - 1)

Definition at line 360 of file if_link.h.

#define IFLA_VLAN_MAX   (__IFLA_VLAN_MAX - 1)

Definition at line 236 of file if_link.h.

#define IFLA_VLAN_QOS_MAX   (__IFLA_VLAN_QOS_MAX - 1)

Definition at line 249 of file if_link.h.

#define IFLA_VXLAN_MAX   (__IFLA_VXLAN_MAX - 1)

Definition at line 290 of file if_link.h.

#define IFLA_WEIGHT   IFLA_WEIGHT

Definition at line 125 of file if_link.h.

#define IFLA_WIRELESS   IFLA_WIRELESS

Definition at line 117 of file if_link.h.

#define MACVLAN_FLAG_NOPROMISC   1

Definition at line 273 of file if_link.h.

#define PORT_PROFILE_MAX   40

Definition at line 376 of file if_link.h.

#define PORT_SELF_VF   -1

Definition at line 378 of file if_link.h.

#define PORT_UUID_MAX   16

Definition at line 377 of file if_link.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
IFLA_UNSPEC 
IFLA_ADDRESS 
IFLA_BROADCAST 
IFLA_IFNAME 
IFLA_MTU 
IFLA_LINK 
IFLA_QDISC 
IFLA_STATS 
IFLA_COST 
IFLA_COST 
IFLA_PRIORITY 
IFLA_PRIORITY 
IFLA_MASTER 
IFLA_MASTER 
IFLA_WIRELESS 
IFLA_WIRELESS 
IFLA_PROTINFO 
IFLA_PROTINFO 
IFLA_TXQLEN 
IFLA_TXQLEN 
IFLA_MAP 
IFLA_MAP 
IFLA_WEIGHT 
IFLA_WEIGHT 
IFLA_OPERSTATE 
IFLA_LINKMODE 
IFLA_LINKINFO 
IFLA_LINKINFO 
IFLA_NET_NS_PID 
IFLA_IFALIAS 
IFLA_NUM_VF 
IFLA_VFINFO_LIST 
IFLA_STATS64 
IFLA_VF_PORTS 
IFLA_PORT_SELF 
IFLA_AF_SPEC 
IFLA_GROUP 
IFLA_NET_NS_FD 
IFLA_EXT_MASK 
IFLA_PROMISCUITY 
IFLA_PROMISCUITY 
IFLA_NUM_TX_QUEUES 
IFLA_NUM_RX_QUEUES 
__IFLA_MAX 

Definition at line 101 of file if_link.h.

anonymous enum
Enumerator:
IFLA_INET_UNSPEC 
IFLA_INET_CONF 
__IFLA_INET_MAX 

Definition at line 157 of file if_link.h.

anonymous enum
Enumerator:
IFLA_INET6_UNSPEC 
IFLA_INET6_FLAGS 
IFLA_INET6_CONF 
IFLA_INET6_STATS 
IFLA_INET6_MCAST 
IFLA_INET6_CACHEINFO 
IFLA_INET6_ICMP6STATS 
__IFLA_INET6_MAX 

Definition at line 195 of file if_link.h.

anonymous enum
Enumerator:
IFLA_INFO_UNSPEC 
IFLA_INFO_KIND 
IFLA_INFO_DATA 
IFLA_INFO_XSTATS 
__IFLA_INFO_MAX 

Definition at line 215 of file if_link.h.

anonymous enum
Enumerator:
IFLA_VLAN_UNSPEC 
IFLA_VLAN_ID 
IFLA_VLAN_FLAGS 
IFLA_VLAN_EGRESS_QOS 
IFLA_VLAN_INGRESS_QOS 
__IFLA_VLAN_MAX 

Definition at line 227 of file if_link.h.

anonymous enum
Enumerator:
IFLA_VLAN_QOS_UNSPEC 
IFLA_VLAN_QOS_MAPPING 
__IFLA_VLAN_QOS_MAX 

Definition at line 243 of file if_link.h.

anonymous enum
Enumerator:
IFLA_MACVLAN_UNSPEC 
IFLA_MACVLAN_MODE 
IFLA_MACVLAN_FLAGS 
__IFLA_MACVLAN_MAX 

Definition at line 257 of file if_link.h.

anonymous enum
Enumerator:
IFLA_VXLAN_UNSPEC 
IFLA_VXLAN_ID 
IFLA_VXLAN_GROUP 
IFLA_VXLAN_LINK 
IFLA_VXLAN_LOCAL 
IFLA_VXLAN_TTL 
IFLA_VXLAN_TOS 
IFLA_VXLAN_LEARNING 
IFLA_VXLAN_AGEING 
IFLA_VXLAN_LIMIT 
IFLA_VXLAN_PORT_RANGE 
__IFLA_VXLAN_MAX 

Definition at line 276 of file if_link.h.

anonymous enum
Enumerator:
IFLA_VF_INFO_UNSPEC 
IFLA_VF_INFO 
__IFLA_VF_INFO_MAX 

Definition at line 299 of file if_link.h.

anonymous enum
Enumerator:
IFLA_VF_UNSPEC 
IFLA_VF_MAC 
IFLA_VF_VLAN 
IFLA_VF_TX_RATE 
IFLA_VF_SPOOFCHK 
__IFLA_VF_MAX 

Definition at line 307 of file if_link.h.

anonymous enum
Enumerator:
IFLA_VF_PORT_UNSPEC 
IFLA_VF_PORT 
__IFLA_VF_PORT_MAX 

Definition at line 354 of file if_link.h.

anonymous enum
Enumerator:
IFLA_PORT_UNSPEC 
IFLA_PORT_VF 
IFLA_PORT_PROFILE 
IFLA_PORT_VSI_TYPE 
IFLA_PORT_INSTANCE_UUID 
IFLA_PORT_HOST_UUID 
IFLA_PORT_REQUEST 
IFLA_PORT_RESPONSE 
__IFLA_PORT_MAX 

Definition at line 362 of file if_link.h.

anonymous enum
Enumerator:
PORT_REQUEST_PREASSOCIATE 
PORT_REQUEST_PREASSOCIATE_RR 
PORT_REQUEST_ASSOCIATE 
PORT_REQUEST_DISASSOCIATE 

Definition at line 380 of file if_link.h.

anonymous enum
Enumerator:
PORT_VDP_RESPONSE_SUCCESS 
PORT_VDP_RESPONSE_INVALID_FORMAT 
PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES 
PORT_VDP_RESPONSE_UNUSED_VTID 
PORT_VDP_RESPONSE_VTID_VIOLATION 
PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION 
PORT_VDP_RESPONSE_OUT_OF_SYNC 
PORT_PROFILE_RESPONSE_SUCCESS 
PORT_PROFILE_RESPONSE_INPROGRESS 
PORT_PROFILE_RESPONSE_INVALID 
PORT_PROFILE_RESPONSE_BADSTATE 
PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES 
PORT_PROFILE_RESPONSE_ERROR 

Definition at line 387 of file if_link.h.

anonymous enum
Enumerator:
IFLA_IPOIB_UNSPEC 
IFLA_IPOIB_PKEY 
IFLA_IPOIB_MODE 
IFLA_IPOIB_UMCAST 
__IFLA_IPOIB_MAX 

Definition at line 414 of file if_link.h.

anonymous enum
Enumerator:
IPOIB_MODE_DATAGRAM 
IPOIB_MODE_CONNECTED 

Definition at line 422 of file if_link.h.

Enumerator:
MACVLAN_MODE_PRIVATE 
MACVLAN_MODE_VEPA 
MACVLAN_MODE_BRIDGE 
MACVLAN_MODE_PASSTHRU 

Definition at line 266 of file if_link.h.

Variable Documentation