netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
addr.c File Reference
Include dependency graph for addr.c:

Macros

#define ADDR_DIFF(ATTR, EXPR)   ATTR_DIFF(attrs, ADDR_ATTR_##ATTR, a, b, EXPR)
 

Functions

Allocation/Freeing
struct rtnl_addrrtnl_addr_alloc (void)
 
void rtnl_addr_put (struct rtnl_addr *addr)
 
Cache Management
int rtnl_addr_alloc_cache (struct nl_sock *sk, struct nl_cache **result)
 
Addition
int rtnl_addr_build_add_request (struct rtnl_addr *addr, int flags, struct nl_msg **result)
 Build netlink request message to request addition of new address. More...
 
int rtnl_addr_add (struct nl_sock *sk, struct rtnl_addr *addr, int flags)
 Request addition of new address. More...
 
Deletion
int rtnl_addr_build_delete_request (struct rtnl_addr *addr, int flags, struct nl_msg **result)
 Build a netlink request message to request deletion of an address. More...
 
int rtnl_addr_delete (struct nl_sock *sk, struct rtnl_addr *addr, int flags)
 Request deletion of an address. More...
 
Attributes
int rtnl_addr_set_label (struct rtnl_addr *addr, const char *label)
 
char * rtnl_addr_get_label (struct rtnl_addr *addr)
 
void rtnl_addr_set_ifindex (struct rtnl_addr *addr, int ifindex)
 
int rtnl_addr_get_ifindex (struct rtnl_addr *addr)
 
void rtnl_addr_set_family (struct rtnl_addr *addr, int family)
 
int rtnl_addr_get_family (struct rtnl_addr *addr)
 
void rtnl_addr_set_prefixlen (struct rtnl_addr *addr, int prefix)
 
int rtnl_addr_get_prefixlen (struct rtnl_addr *addr)
 
void rtnl_addr_set_scope (struct rtnl_addr *addr, int scope)
 
int rtnl_addr_get_scope (struct rtnl_addr *addr)
 
void rtnl_addr_set_flags (struct rtnl_addr *addr, unsigned int flags)
 
void rtnl_addr_unset_flags (struct rtnl_addr *addr, unsigned int flags)
 
unsigned int rtnl_addr_get_flags (struct rtnl_addr *addr)
 
int rtnl_addr_set_local (struct rtnl_addr *addr, struct nl_addr *local)
 
struct nl_addrrtnl_addr_get_local (struct rtnl_addr *addr)
 
int rtnl_addr_set_peer (struct rtnl_addr *addr, struct nl_addr *peer)
 
struct nl_addrrtnl_addr_get_peer (struct rtnl_addr *addr)
 
int rtnl_addr_set_broadcast (struct rtnl_addr *addr, struct nl_addr *bcast)
 
struct nl_addrrtnl_addr_get_broadcast (struct rtnl_addr *addr)
 
int rtnl_addr_set_multicast (struct rtnl_addr *addr, struct nl_addr *multicast)
 
struct nl_addrrtnl_addr_get_multicast (struct rtnl_addr *addr)
 
int rtnl_addr_set_anycast (struct rtnl_addr *addr, struct nl_addr *anycast)
 
struct nl_addrrtnl_addr_get_anycast (struct rtnl_addr *addr)
 
uint32_t rtnl_addr_get_valid_lifetime (struct rtnl_addr *addr)
 
void rtnl_addr_set_valid_lifetime (struct rtnl_addr *addr, uint32_t lifetime)
 
uint32_t rtnl_addr_get_preferred_lifetime (struct rtnl_addr *addr)
 
void rtnl_addr_set_preferred_lifetime (struct rtnl_addr *addr, uint32_t lifetime)
 
uint32_t rtnl_addr_get_create_time (struct rtnl_addr *addr)
 
uint32_t rtnl_addr_get_last_update_time (struct rtnl_addr *addr)
 

Flags Translations

char * rtnl_addr_flags2str (int flags, char *buf, size_t size)
 
int rtnl_addr_str2flags (const char *name)
 

Macro Definition Documentation

#define ADDR_DIFF (   ATTR,
  EXPR 
)    ATTR_DIFF(attrs, ADDR_ATTR_##ATTR, a, b, EXPR)