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 u_charrt_flags;
32 u_charrt_metric;
33 shortrt_refcnt;
34 u_longrt_use;
35 structdevice *rt_dev;
36 };
37
38
39 externvoidrt_flush(structdevice *dev);
40 externvoidrt_add(shortflags, unsignedlongaddr,
41 unsignedlonggw, structdevice *dev);
42 externstructrtable *rt_route(unsignedlongdaddr, structoptions *opt);
43 externintrt_get_info(char * buffer);
44 externintrt_ioctl(unsignedintcmd, void *arg);
45
46 #endif/* _ROUTE_H */