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_gateway; 30 u_char rt_flags; 31 u_char rt_metric; 32 short rt_refcnt; 33 u_long rt_use; 34 struct device *rt_dev; 35 }; 36 37 38 extern void rt_flush(struct device *dev); 39 extern void rt_add(short flags, unsigned long addr, 40 unsigned long gw, struct device *dev); 41 extern struct rtable *rt_route(unsigned long daddr, struct options *opt); 42 extern int rt_get_info(char * buffer); 43 extern int rt_ioctl(unsigned int cmd, void *arg); 44 45 #endif /* _ROUTE_H */