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

dnet.c File Reference

#include "config.h"
#include <sys/types.h>
#include <err.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 print_modules (int type, char *string)
static void print_usage (void)
static int do_command (int argc, char *argv[])
int main (int argc, char *argv[])

Variables

mod mod_addr
mod mod_hex
mod mod_rand
mod mod_eth
mod mod_arp
mod mod_ip
mod mod_icmp
mod mod_tcp
mod mod_udp
mod mod_send
mod mod_fw
mod mod_intf
mod mod_route
static struct modmodules []


Function Documentation

static int do_command int  argc,
char *  argv[]
[static]
 

Definition at line 73 of file dnet.c.

References main(), mod::name, and NULL.

Referenced by main().

int main int  argc,
char *  argv[]
 

Definition at line 85 of file dnet.c.

References do_command(), and print_usage().

static void print_modules int  type,
char *  string
[static]
 

Definition at line 45 of file dnet.c.

References mod::name, and NULL.

Referenced by print_usage().

static void print_usage void   )  [static]
 

Definition at line 62 of file dnet.c.

References MOD_TYPE_DATA, MOD_TYPE_ENCAP, MOD_TYPE_KERN, MOD_TYPE_XMIT, and print_modules().

Referenced by main().


Variable Documentation

struct mod mod_addr
 

Definition at line 49 of file addr.c.

struct mod mod_arp
 

Definition at line 169 of file arp.c.

struct mod mod_eth
 

Definition at line 85 of file eth.c.

struct mod mod_fw
 

Definition at line 192 of file fw.c.

struct mod mod_hex
 

Definition at line 58 of file hex.c.

struct mod mod_icmp
 

Definition at line 78 of file icmp.c.

struct mod mod_intf
 

Definition at line 181 of file intf.c.

struct mod mod_ip
 

Definition at line 110 of file ip.c.

struct mod mod_rand
 

Definition at line 56 of file rand.c.

struct mod mod_route
 

Definition at line 96 of file route.c.

struct mod mod_send
 

Definition at line 72 of file send.c.

struct mod mod_tcp
 

Definition at line 105 of file tcp.c.

struct mod mod_udp
 

Definition at line 84 of file udp.c.

struct mod* modules[] [static]
 

Initial value:

Definition at line 39 of file dnet.c.


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