Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

route.c File Reference

#include "config.h"
#include <sys/types.h>
#include <err.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "dnet.h"
#include "mod.h"

Go to the source code of this file.

Functions

static void usage (void)
static int print_route (const struct route_entry *entry, void *arg)
int route_main (int argc, char *argv[])

Variables

mod mod_route


Function Documentation

static int print_route const struct route_entry entry,
void *  arg
[static]
 

Definition at line 34 of file route.c.

References addr_ntoa(), route_entry::route_dst, and route_entry::route_gw.

Referenced by route_main().

int route_main int  argc,
char *  argv[]
 

Definition at line 42 of file route.c.

References addr_aton, addr::addr_bits, addr_ntoa(), err(), IP_ADDR_BITS, NULL, print_route(), route_add(), route_close(), route_delete(), route_entry::route_dst, route_get(), route_entry::route_gw, route_loop(), route_open(), and usage().

static void usage void   )  [static]
 

Definition at line 24 of file route.c.


Variable Documentation

struct mod mod_route
 

Initial value:

 {
        "route",
        MOD_TYPE_KERN,
        route_main
}

Definition at line 96 of file route.c.


Generated on Sun May 14 14:51:22 2006 by  doxygen 1.4.2