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

ip.c File Reference

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

Go to the source code of this file.

Functions

void ip_usage (void)
int ip_main (int argc, char *argv[])

Variables

mod mod_ip


Function Documentation

int ip_main int  argc,
char *  argv[]
 

Definition at line 33 of file ip.c.

References addr_aton, err(), errx(), ip_checksum(), ip_hdr::ip_dst, IP_HDR_LEN, ip_hdr::ip_hl, ip_hdr::ip_id, ip_hdr::ip_len, IP_LEN_MAX, ip_hdr::ip_off, ip_hdr::ip_p, ip_hdr::ip_src, ip_hdr::ip_sum, ip_hdr::ip_tos, ip_hdr::ip_ttl, IP_TTL_MAX, ip_usage(), ip_hdr::ip_v, NULL, off_aton(), and proto_aton().

void ip_usage void   ) 
 

Definition at line 25 of file ip.c.

Referenced by ip_main().


Variable Documentation

struct mod mod_ip
 

Initial value:

 {
        "ip",
        MOD_TYPE_ENCAP,
        ip_main
}

Definition at line 110 of file ip.c.


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