1 /*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Definitions for the IP router.
7 *
8 * Version: @(#)route.h 1.0.4 05/27/93
9 *
10 * Authors: Ross Biro, <bir7@leland.Stanford.Edu>
11 * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
12 *
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version
16 * 2 of the License, or (at your option) any later version.
17 */
18 #ifndef _ROUTE_H
19 #define _ROUTE_H
20
21
22 #include <linux/route.h>
23
24
25 /* This is an entry in the IP routing table. */
26 struct rtable {
27 struct rtable *rt_next;
28 unsigned long rt_dst;
29 unsigned long rt_mask;
30 unsigned long rt_gateway;
31 u_char rt_flags;
32 u_char rt_metric;
33 short rt_refcnt;
34 u_long rt_use;
35 struct device *rt_dev;
36 };
37
38
39 extern void rt_flush(struct device *dev);
40 extern void rt_add(short flags, unsigned long addr, unsigned long mask,
41 unsigned long gw, struct device *dev);
42 extern struct rtable *rt_route(unsigned long daddr, struct options *opt);
43 extern int rt_get_info(char * buffer);
44 extern int rt_ioctl(unsigned int cmd, void *arg);
45
46 #endif /* _ROUTE_H */