routing.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 
00019 # include "alg/routingtable.hh"
00020 
00021 #ifndef QOLYESTER_DAEMON_SYS_ROUTING_HH
00022 # define QOLYESTER_DAEMON_SYS_ROUTING_HH 1
00023 
00024 # include "config.hh"
00025 # include "net/route.hh"
00026 # ifndef QOLYESTER_ENABLE_VIRTUAL
00027 #  include "linux/routingsocket.hh"
00028 # else
00029 #  include "virtual/routingsocket.hh"
00030 # endif
00031 
00032 namespace olsr {
00033 
00034   namespace sys {
00035 
00036     class RoutingActions {
00037     public:
00038       inline void       print_kernel_routes();
00039       inline void       remove_old_routes();
00040       inline void       add_local_route(const net::LocalRoute& r);
00041       inline void       add_remote_route(const net::RemoteRoute& r);
00042       inline void       remove_local_route(const net::LocalRoute& r);
00043       inline void       remove_remote_route(const net::RemoteRoute& r);
00044     private:
00045       internal::RoutingSocket   _rs;
00046     };
00047 
00048   } // namespace sys
00049 
00050 } // namespace olsr
00051 
00052 # include "routing.hxx"
00053 
00054 #endif // ! QOLYESTER_DAEMON_SYS_ROUTING_HH

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