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

eth.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 "aton.h"
#include "mod.h"

Go to the source code of this file.

Functions

void eth_usage (void)
int eth_main (int argc, char *argv[])

Variables

mod mod_eth


Function Documentation

int eth_main int  argc,
char *  argv[]
 

Definition at line 31 of file eth.c.

References addr_aton, err(), errx(), ETH_ADDR_LEN, ETH_HDR_LEN, ETH_LEN_MAX, ETH_TYPE_IP, eth_usage(), memcpy, memset, and type_aton().

void eth_usage void   ) 
 

Definition at line 24 of file eth.c.

Referenced by eth_main().


Variable Documentation

struct mod mod_eth
 

Initial value:

 {
        "eth",
        MOD_TYPE_ENCAP,
        eth_main
}

Definition at line 85 of file eth.c.


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