[insert project logo here (125x200px max)] Navigator Mailinglists Please report any errors or ommissions you find to our `Help' mailinglist, or post a message in the Forums. Copyright and Licensing Information Snap is (c) Jonathan T. Moore, 1999-2002 and licensed under the GNU General Public License (GPL). All other parts of Splash are (c) Willem de Bruijn, 2002-2003 and licensed under the BSD Open Source License. All sourcecode is made publicly available. Acknowledgement Splash and the Splash website are hosted by SourceForge.net |
Splash - DocumentationSNMP Plus a Lightweight API for SNAP Handlingsnap-1.1-wjdb/lib/router.hGo to the documentation of this file.00001 /* snap-1.0. Copyright (C) 2000 by Jonathan T. Moore and Michael Hicks. 00002 * 00003 * router.h : interface to the routing table used by SNAP 00004 * 00005 * $Id: router.h,v 1.1.1.1 2002/12/04 18:59:42 wdebruij Exp $ 00006 */ 00007 00008 #ifndef _ROUTER_H_ 00009 #define _ROUTER_H_ 00010 00011 #include <asm/types.h> 00012 #include "bytecode.h" 00013 00014 #define PROC_NET_ROUTE_PATH "/proc/net/route" 00015 #define PROC_NET_DEV_PATH "/proc/net/dev" 00016 00017 typedef __u32 addr_t; 00018 00019 struct rt_lookup { 00020 addr_t hopaddr; 00021 unsigned int ifidx; 00022 }; 00023 00024 extern void read_routes(char *iface_file); 00025 extern void read_ifaces(char *route_file); 00026 extern int nexthop(addr_t dst, struct rt_lookup *retval); 00027 00028 #endif /* !_ROUTER_H_ */ |