![]() |
The Netsukuku Project
0.0.9
An Alternative routing method
|
#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <syslog.h>#include <fcntl.h>#include <net/if_arp.h>#include <sys/socket.h>#include <netinet/in.h>#include <string.h>#include <errno.h>#include <time.h>#include <sys/uio.h>#include <stdarg.h>#include "libnetlink.h"#include "log.h"
Functions | |
| void | rtnl_close (struct rtnl_handle *rth) |
| int | rtnl_open_byproto (struct rtnl_handle *rth, unsigned subscriptions, int protocol) |
| int | rtnl_open (struct rtnl_handle *rth, unsigned subscriptions) |
| int | rtnl_wilddump_request (struct rtnl_handle *rth, int family, int type) |
| int | rtnl_send (struct rtnl_handle *rth, const char *buf, int len) |
| 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_listen (struct rtnl_handle *rtnl, rtnl_filter_t handler, void *jarg) |
| int | rtnl_from_file (FILE *rtnl, rtnl_filter_t handler, void *jarg) |
| 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 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 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 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 | ||
| ) |


| void rtnl_close | ( | struct rtnl_handle * | rth | ) |

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


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

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

| int rtnl_open | ( | struct rtnl_handle * | rth, |
| unsigned | subscriptions | ||
| ) |


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


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

| 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_wilddump_request | ( | struct rtnl_handle * | rth, |
| int | family, | ||
| int | type | ||
| ) |
