routingsocket.hh

Go to the documentation of this file.
00001 // Copyright (C) 2003, 2004, 2005 Laboratoire de Recherche en Informatique
00002 
00003 // This file is part of Qolyester.
00004 
00005 // Qolyester is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU General Public License
00007 // as published by the Free Software Foundation; either version 2
00008 // of the License, or (at your option) any later version.
00009 
00010 // Qolyester is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, write to the Free Software
00017 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
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     } // namespace internal
00064 
00065   } // namespace sys
00066 
00067 } // namespace olsr
00068 
00069 #  include "routingsocket.hxx"
00070 
00071 # endif // ! QOLYESTER_DAEMON_SYS_VIRTUAL_ROUTINGSOCKET_HH
00072 
00073 #endif // QOLYESTER_ENABLE_VIRTUAL

Generated on Mon Sep 10 17:02:12 2007 for Qolyester daemon by  doxygen 1.5.1