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 structrtable{ 27 structrtable *rt_next;
28 unsignedlongrt_dst;
29 unsignedlongrt_mask;
30 unsignedlongrt_gateway;
31 unsignedcharrt_flags;
32 unsignedcharrt_metric;
33 shortrt_refcnt;
34 unsignedlongrt_use;
35 unsignedshort rt_mss, rt_mtu;
36 structdevice *rt_dev;
37 };
38
39
40 externvoidrt_flush(structdevice *dev);
41 externvoidrt_add(shortflags, unsignedlongaddr, unsignedlongmask,
42 unsignedlonggw, structdevice *dev);
43 externstructrtable *rt_route(unsignedlongdaddr, structoptions *opt);
44 externintrt_get_info(char * buffer);
45 externintrt_ioctl(unsignedintcmd, void *arg);
46
47 #endif/* _ROUTE_H */