00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00025
00026 #include "config.hh"
00027
00028 #ifdef QOLYESTER_ENABLE_VIRTUAL
00029
00030 # ifndef QOLYESTER_DAEMON_SYS_VIRTUAL_ROUTINGSOCKET_HH
00031 # define QOLYESTER_DAEMON_SYS_VIRTUAL_ROUTINGSOCKET_HH 1
00032
00033 # include "net/ipaddress.hh"
00034 # include "sys/virtual/interfacedesc.hh"
00035 # include "sys/virtualinterfaceinfo.hh"
00036
00037 namespace olsr {
00038
00039 namespace sys {
00040
00041 namespace internal {
00042
00047 class RoutingSocket {
00048 public:
00049 void print_kernel_routes();
00050 void remove_old_routes();
00051 void add_local_route(const address_t&, unsigned,
00052 const sys::VirtualInterfaceInfo&);
00053 void add_remote_route(const address_t&, unsigned,
00054 const address_t&);
00055 void remove_local_route(const address_t&, unsigned,
00056 const sys::VirtualInterfaceInfo&);
00057 void remove_remote_route(const address_t&, unsigned,
00058 const address_t&);
00059 void add_addr(unsigned, const InterfaceAddress&);
00060 void del_addr(unsigned, const InterfaceAddress&);
00061 };
00062
00063 }
00064
00065 }
00066
00067 }
00068
00069 # include "routingsocket.hxx"
00070
00071 # endif // ! QOLYESTER_DAEMON_SYS_VIRTUAL_ROUTINGSOCKET_HH
00072
00073 #endif // QOLYESTER_ENABLE_VIRTUAL