The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
krnl_rule.h
Go to the documentation of this file.
1 /* This file is part of Netsukuku
2  * (c) Copyright 2004 Andrea Lo Pumo aka AlpT <alpt@freaknet.org>
3  *
4  * This source code is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as published
6  * by the Free Software Foundation; either version 2 of the License,
7  * or (at your option) any later version.
8  *
9  * This source code is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12  * Please refer to the GNU Public License for more details.
13  *
14  * You should have received a copy of the GNU Public License along with
15  * this source code; if not, write to:
16  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17  */
18 
19 int rule_add(inet_prefix *from, inet_prefix *to, char *dev,
20  int prio, u_int fwmark, u_char table);
21 int rule_del(inet_prefix *from, inet_prefix *to, char *dev,
22  int prio, u_int fwmark, u_char table);
23 int rule_replace(inet_prefix *from, inet_prefix *to, char *dev,
24  int prio, u_int fwmark, u_char table);
25 int rule_flush_table_range(int family, int a, int b);
int rule_add(inet_prefix *from, inet_prefix *to, char *dev, int prio, u_int fwmark, u_char table)
Definition: krnl_rule.c:34
Definition: inet.h:73
int rule_del(inet_prefix *from, inet_prefix *to, char *dev, int prio, u_int fwmark, u_char table)
Definition: krnl_rule.c:40
int rule_replace(inet_prefix *from, inet_prefix *to, char *dev, int prio, u_int fwmark, u_char table)
Definition: krnl_rule.c:46
int rule_flush_table_range(int family, int a, int b)
Definition: krnl_rule.c:159
int family
Definition: if.c:34