[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

SourceForge.net Logo

osi-open source certified logo

Splash - Documentation

SNMP Plus a Lightweight API for SNAP Handling

Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

snap-1.1-wjdb/lib/router.h File Reference

#include <asm/types.h>
#include "bytecode.h"

Include dependency graph for router.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.


Data Structures

struct  rt_lookup

Defines

#define PROC_NET_ROUTE_PATH   "/proc/net/route"
#define PROC_NET_DEV_PATH   "/proc/net/dev"

Typedefs

typedef __u32 addr_t

Functions

void read_routes (char *iface_file)
void read_ifaces (char *route_file)
int nexthop (addr_t dst, struct rt_lookup *retval)

Define Documentation

#define PROC_NET_DEV_PATH   "/proc/net/dev"
 

Definition at line 15 of file router.h.

#define PROC_NET_ROUTE_PATH   "/proc/net/route"
 

Definition at line 14 of file router.h.


Typedef Documentation

typedef __u32 addr_t
 

Definition at line 17 of file router.h.

Referenced by nexthop(), and read_routes().


Function Documentation

int nexthop addr_t    dst,
struct rt_lookup   retval
 

Definition at line 260 of file router.c.

References addr_t, rt_lookup::hopaddr, rt_lookup::ifidx, num_routes, print_anti_timer, print_timer, rtentry::rt_dst, rtentry::rt_gateway, rtentry::rt_genmask, and rtentry::rt_ifidx.

void read_ifaces char *    route_file
 

Definition at line 84 of file router.c.

References d_printf(), ifaces, memalloc, num_if_entries, and num_ifaces.

void read_routes char *    iface_file
 

Definition at line 154 of file router.c.

References addr_t, d_printf(), memalloc, num_routes, num_rt_entries, proc_gen_fmt(), rtentry::rt_dst, rtentry::rt_flags, rtentry::rt_gateway, rtentry::rt_genmask, rtentry::rt_ifidx, rtentry::rt_irtt, rtentry::rt_metric, rtentry::rt_mtu, rtentry::rt_window, and sprintf_addr().