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

intf.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 char * flags2string (u_short flags)
static int print_intf (const struct intf_entry *entry, void *arg)
int intf_main (int argc, char *argv[])

Variables

static intf_tintf
mod mod_intf


Function Documentation

static char* flags2string u_short  flags  )  [static]
 

Definition at line 39 of file intf.c.

References INTF_FLAG_BROADCAST, INTF_FLAG_LOOPBACK, INTF_FLAG_MULTICAST, INTF_FLAG_NOARP, INTF_FLAG_POINTOPOINT, INTF_FLAG_UP, and strlcat().

Referenced by print_intf().

int intf_main int  argc,
char *  argv[]
 

Definition at line 97 of file intf.c.

References addr_aton, addr_pton(), err(), intf_close(), INTF_FLAG_NOARP, INTF_FLAG_UP, intf_get(), intf_get_dst(), intf_get_src(), intf_loop(), intf_open(), intf_set(), memset, NULL, print_intf(), strlcpy, and usage().

static int print_intf const struct intf_entry entry,
void *  arg
[static]
 

Definition at line 65 of file intf.c.

References addr_ntoa(), ADDR_TYPE_ETH, ADDR_TYPE_IP, and flags2string().

Referenced by intf_main().

static void usage void   )  [static]
 

Definition at line 26 of file intf.c.


Variable Documentation

intf_t* intf [static]
 

Definition at line 23 of file intf.c.

Referenced by __pyx_f_4dnet_4intf___dealloc__(), __pyx_f_4dnet_4intf_get(), __pyx_f_4dnet_4intf_get_dst(), __pyx_f_4dnet_4intf_get_src(), __pyx_f_4dnet_4intf_loop(), __pyx_f_4dnet_4intf_set(), eth_open(), and intf_open().

struct mod mod_intf
 

Initial value:

 {
        "intf",
        MOD_TYPE_KERN,
        intf_main
}

Definition at line 181 of file intf.c.


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