2 * OLSR ad-hoc routing table management protocol
3 * Copyright (C) 2004 Andreas Tønnesen (andreto@ifi.uio.no)
5 * This file is part of the olsr.org OLSR daemon.
7 * olsr.org is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * olsr.org is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with olsr.org; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #include "routing_table.h"
26 #ifndef _OLSR_PROCESS_RT
27 #define _OLSR_PROCESS_RT
29 #include <sys/ioctl.h>
32 olsr_u32_t tunl_netmask, tunl_gw;
34 struct rt_entry old_routes[HASHSIZE];
35 struct rt_entry old_hna[HASHSIZE];
38 olsr_init_old_table();
41 olsr_find_up_route(struct rt_entry *dst,struct rt_entry *table);
43 struct destination_n *
44 olsr_build_update_list(struct rt_entry *from_table, struct rt_entry *in_table);
47 olsr_update_kernel_routes();
50 olsr_update_kernel_hna_routes();
53 olsr_move_route_table(struct rt_entry *, struct rt_entry *);
56 olsr_delete_routes_from_kernel(struct destination_n *delete_kernel_list);
59 olsr_add_routes_in_kernel(struct destination_n *add_kernel_list);
62 olsr_delete_all_kernel_routes();