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

Go to the source code of this file.

Data Structures

struct  ifaddrmsg
 
struct  ifa_cacheinfo
 

Macros

#define IFA_MAX   (__IFA_MAX - 1)
 
#define IFA_F_SECONDARY   0x01
 
#define IFA_F_TEMPORARY   IFA_F_SECONDARY
 
#define IFA_F_NODAD   0x02
 
#define IFA_F_OPTIMISTIC   0x04
 
#define IFA_F_DADFAILED   0x08
 
#define IFA_F_HOMEADDRESS   0x10
 
#define IFA_F_DEPRECATED   0x20
 
#define IFA_F_TENTATIVE   0x40
 
#define IFA_F_PERMANENT   0x80
 
#define IFA_RTA(r)   ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
 
#define IFA_PAYLOAD(n)   NLMSG_PAYLOAD(n,sizeof(struct ifaddrmsg))
 

Enumerations

enum  {
  IFA_UNSPEC, IFA_ADDRESS, IFA_LOCAL, IFA_LABEL,
  IFA_BROADCAST, IFA_ANYCAST, IFA_CACHEINFO, IFA_MULTICAST,
  __IFA_MAX
}
 

Macro Definition Documentation

#define IFA_F_DADFAILED   0x08

Definition at line 42 of file if_addr.h.

#define IFA_F_DEPRECATED   0x20

Definition at line 44 of file if_addr.h.

#define IFA_F_HOMEADDRESS   0x10

Definition at line 43 of file if_addr.h.

#define IFA_F_NODAD   0x02

Definition at line 40 of file if_addr.h.

#define IFA_F_OPTIMISTIC   0x04

Definition at line 41 of file if_addr.h.

#define IFA_F_PERMANENT   0x80

Definition at line 46 of file if_addr.h.

#define IFA_F_SECONDARY   0x01

Definition at line 37 of file if_addr.h.

#define IFA_F_TEMPORARY   IFA_F_SECONDARY

Definition at line 38 of file if_addr.h.

#define IFA_F_TENTATIVE   0x40

Definition at line 45 of file if_addr.h.

#define IFA_MAX   (__IFA_MAX - 1)

Definition at line 34 of file if_addr.h.

#define IFA_PAYLOAD (   n)    NLMSG_PAYLOAD(n,sizeof(struct ifaddrmsg))

Definition at line 58 of file if_addr.h.

#define IFA_RTA (   r)    ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))

Definition at line 57 of file if_addr.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
IFA_UNSPEC 
IFA_ADDRESS 
IFA_LOCAL 
IFA_LABEL 
IFA_BROADCAST 
IFA_ANYCAST 
IFA_CACHEINFO 
IFA_MULTICAST 
__IFA_MAX 

Definition at line 22 of file if_addr.h.