The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
libnetlink.h File Reference
#include <asm/types.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
Include dependency graph for libnetlink.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rtnl_handle
 

Macros

#define parse_rtattr_nested(tb, max, rta)   (parse_rtattr((tb), (max), RTA_DATA(rta), RTA_PAYLOAD(rta)))
 
#define NLMSG_TAIL(nmsg)   ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
 

Typedefs

typedef int(* rtnl_filter_t )(const struct sockaddr_nl *, struct nlmsghdr *n, void *)
 

Functions

int rtnl_open (struct rtnl_handle *rth, unsigned subscriptions)
 
int rtnl_open_byproto (struct rtnl_handle *rth, unsigned subscriptions, int protocol)
 
void rtnl_close (struct rtnl_handle *rth)
 
int rtnl_wilddump_request (struct rtnl_handle *rth, int fam, int type)
 
int rtnl_dump_request (struct rtnl_handle *rth, int type, void *req, int len)
 
int rtnl_dump_filter (struct rtnl_handle *rth, rtnl_filter_t filter, void *arg1, rtnl_filter_t junk, void *arg2)
 
int rtnl_talk (struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer, unsigned groups, struct nlmsghdr *answer, rtnl_filter_t junk, void *jarg)
 
int rtnl_send (struct rtnl_handle *rth, const char *buf, int)
 
int addattr32 (struct nlmsghdr *n, int maxlen, int type, uint32_t data)
 
int addattr_l (struct nlmsghdr *n, int maxlen, int type, const void *data, int alen)
 
int addraw_l (struct nlmsghdr *n, int maxlen, const void *data, int len)
 
int rta_addattr32 (struct rtattr *rta, int maxlen, int type, uint32_t data)
 
int rta_addattr_l (struct rtattr *rta, int maxlen, int type, const void *data, int alen)
 
int parse_rtattr (struct rtattr *tb[], int max, struct rtattr *rta, int len)
 
int parse_rtattr_byindex (struct rtattr *tb[], int max, struct rtattr *rta, int len)
 
int rtnl_listen (struct rtnl_handle *, rtnl_filter_t handler, void *jarg)
 
int rtnl_from_file (FILE *, rtnl_filter_t handler, void *jarg)
 

Macro Definition Documentation

#define NLMSG_TAIL (   nmsg)    ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
#define parse_rtattr_nested (   tb,
  max,
  rta 
)    (parse_rtattr((tb), (max), RTA_DATA(rta), RTA_PAYLOAD(rta)))

Typedef Documentation

typedef int(* rtnl_filter_t)(const struct sockaddr_nl *, struct nlmsghdr *n, void *)

Function Documentation

int addattr32 ( struct nlmsghdr *  n,
int  maxlen,
int  type,
uint32_t  data 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int addattr_l ( struct nlmsghdr *  n,
int  maxlen,
int  type,
const void *  data,
int  alen 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int addraw_l ( struct nlmsghdr *  n,
int  maxlen,
const void *  data,
int  len 
)

Here is the call graph for this function:

int parse_rtattr ( struct rtattr *  tb[],
int  max,
struct rtattr *  rta,
int  len 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int parse_rtattr_byindex ( struct rtattr *  tb[],
int  max,
struct rtattr *  rta,
int  len 
)

Here is the call graph for this function:

int rta_addattr32 ( struct rtattr *  rta,
int  maxlen,
int  type,
uint32_t  data 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int rta_addattr_l ( struct rtattr *  rta,
int  maxlen,
int  type,
const void *  data,
int  alen 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void rtnl_close ( struct rtnl_handle rth)

Here is the caller graph for this function:

int rtnl_dump_filter ( struct rtnl_handle rth,
rtnl_filter_t  filter,
void *  arg1,
rtnl_filter_t  junk,
void *  arg2 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int rtnl_dump_request ( struct rtnl_handle rth,
int  type,
void *  req,
int  len 
)
int rtnl_from_file ( FILE *  ,
rtnl_filter_t  handler,
void *  jarg 
)

Here is the call graph for this function:

int rtnl_listen ( struct rtnl_handle ,
rtnl_filter_t  handler,
void *  jarg 
)

Here is the call graph for this function:

int rtnl_open ( struct rtnl_handle rth,
unsigned  subscriptions 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int rtnl_open_byproto ( struct rtnl_handle rth,
unsigned  subscriptions,
int  protocol 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int rtnl_send ( struct rtnl_handle rth,
const char *  buf,
int   
)

Here is the caller graph for this function:

int rtnl_talk ( struct rtnl_handle rtnl,
struct nlmsghdr *  n,
pid_t  peer,
unsigned  groups,
struct nlmsghdr *  answer,
rtnl_filter_t  junk,
void *  jarg 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int rtnl_wilddump_request ( struct rtnl_handle rth,
int  fam,
int  type 
)

Here is the caller graph for this function: