#include "kernel_routes.h"#include "olsr.h"#include "defs.h"#include "process_routes.h"#include "net_olsr.h"#include "ipcalc.h"#include <errno.h>#include <unistd.h>#include <net/if_dl.h>#include <ifaddrs.h>
Go to the source code of this file.
Defines | |
| #define | OLSR_PID getpid () |
Functions | |
| static int | add_del_route (const struct rt_entry *rt, int add) |
| int | olsr_ioctl_add_route (const struct rt_entry *rt) |
| int | olsr_ioctl_del_route (const struct rt_entry *rt) |
| static int | add_del_route6 (const struct rt_entry *rt, int add) |
| int | olsr_ioctl_add_route6 (const struct rt_entry *rt) |
| int | olsr_ioctl_del_route6 (const struct rt_entry *rt) |
Variables | |
| static unsigned int | seq = 0 |
| #define OLSR_PID getpid () |
Definition at line 60 of file kernel_routes.c.
Referenced by add_del_route(), and add_del_route6().
| static int add_del_route | ( | const struct rt_entry * | rt, | |
| int | add | |||
| ) | [static] |
Definition at line 72 of file kernel_routes.c.
References rt_nexthop::gateway, if_ifwithindex_name(), olsr_cnf, olsr_get_nh(), OLSR_PID, olsr_prefix_to_netmask(), olsr_rt_to_string(), olsr_rtp_to_string(), olsr_ip_prefix::prefix, olsr_ip_prefix::prefix_len, rt_entry::rt_best, rt_entry::rt_dst, RTF_GATEWAY, RTF_HOST, seq, olsr_ip_addr::v4, and write().
Referenced by olsr_ioctl_add_route(), and olsr_ioctl_del_route().

| static int add_del_route6 | ( | const struct rt_entry * | rt, | |
| int | add | |||
| ) | [static] |
Definition at line 229 of file kernel_routes.c.
References AF_INET6, rt_nexthop::gateway, olsr_cnf, olsr_get_nh(), OLSR_PID, olsr_prefix_to_netmask(), olsr_rt_to_string(), olsr_rtp_to_string(), olsr_ip_prefix::prefix, olsr_ip_prefix::prefix_len, rt_entry::rt_best, rt_entry::rt_dst, RTF_GATEWAY, RTF_HOST, in6_addr::s6_addr, seq, sockaddr_in6::sin6_addr, sockaddr_in6::sin6_family, sockaddr_in6::sin6_scope_id, olsr_ip_addr::v6, and write().
Referenced by olsr_ioctl_add_route6(), and olsr_ioctl_del_route6().

| int olsr_ioctl_add_route | ( | const struct rt_entry * | rt | ) |
Definition at line 217 of file kernel_routes.c.
References add_del_route().

| int olsr_ioctl_add_route6 | ( | const struct rt_entry * | rt | ) |
Definition at line 378 of file kernel_routes.c.
References add_del_route6().

| int olsr_ioctl_del_route | ( | const struct rt_entry * | rt | ) |
Definition at line 223 of file kernel_routes.c.
References add_del_route().

| int olsr_ioctl_del_route6 | ( | const struct rt_entry * | rt | ) |
Definition at line 384 of file kernel_routes.c.
References add_del_route6().

unsigned int seq = 0 [static] |
Definition at line 63 of file kernel_routes.c.
Referenced by add_del_route(), and add_del_route6().
1.6.3