- add 'ip rule' support. First take..

text    data     bss     dec     hex filename
   2999       0       0    2999     bb7 networking/libiproute/iprule.o
This commit is contained in:
Bernhard Reutner-Fischer
2006-11-21 15:36:08 +00:00
parent 04b30ba3b8
commit 921f5df25f
14 changed files with 497 additions and 28 deletions

View File

@@ -20,14 +20,14 @@ extern void rtnl_close(struct rtnl_handle *rth);
extern int rtnl_wilddump_request(struct rtnl_handle *rth, int fam, int type);
extern int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, int len);
extern int rtnl_dump_filter(struct rtnl_handle *rth,
int (*filter)(struct sockaddr_nl *, struct nlmsghdr *n, void *),
void *arg1,
int (*junk)(struct sockaddr_nl *,struct nlmsghdr *n, void *),
void *arg2);
int (*filter)(struct sockaddr_nl*, struct nlmsghdr *n, void*),
void *arg1,
int (*junk)(struct sockaddr_nl *, struct nlmsghdr *n, void *),
void *arg2);
extern int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer,
unsigned groups, struct nlmsghdr *answer,
int (*junk)(struct sockaddr_nl *,struct nlmsghdr *n, void *),
void *jarg);
unsigned groups, struct nlmsghdr *answer,
int (*junk)(struct sockaddr_nl *,struct nlmsghdr *n, void *),
void *jarg);
extern int rtnl_send(struct rtnl_handle *rth, char *buf, int);