[insert project logo here (125x200px max)]

Navigator

Mailinglists

Please report any errors or ommissions you find to our `Help' mailinglist, or post a message in the Forums.

Copyright and Licensing Information

Snap is (c) Jonathan T. Moore, 1999-2002 and licensed under the GNU General Public License (GPL).

All other parts of Splash are (c) Willem de Bruijn, 2002-2003 and licensed under the BSD Open Source License.

All sourcecode is made publicly available.

Acknowledgement

Splash and the Splash website are hosted by SourceForge.net

SourceForge.net Logo

osi-open source certified logo

Splash - Documentation

SNMP Plus a Lightweight API for SNAP Handling

Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

snap-1.1-wjdb/lib/net-support.h File Reference

#include <sys/socket.h>

Include dependency graph for net-support.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.


Data Structures

struct  aftype
struct  hwtype

Defines

#define RTACTION_ADD   1
#define RTACTION_DEL   2
#define RTACTION_HELP   3
#define RTACTION_FLUSH   4
#define RTACTION_SHOW   5
#define FLAG_EXT   3
#define FLAG_NUM   4
#define FLAG_SYM   8
#define FLAG_CACHE   16
#define FLAG_FIB   32
#define FLAG_VERBOSE   64
#define AFTRANS_OPTS
#define AFTRANS_CNT   9
#define EINTERN(file, text)
#define ENOSUPP(A, B)
#define ESYSNOT(A, B)   fprintf(stderr, _("%s: no support for `%s' on this system.\n"),A,B)
#define E_NOTFOUND   8
#define E_SOCK   7
#define E_LOOKUP   6
#define E_VERSION   5
#define E_USAGE   4
#define E_OPTERR   3
#define E_INTERN   2
#define E_NOSUPP   1

Functions

hwtypeget_hwtype (const char *name)
hwtypeget_hwntype (int type)
aftypeget_aftype (const char *name)
aftypeget_afntype (int type)
int getargs (char *string, char *arguments[])
void getroute_init (void)
void setroute_init (void)
void activate_init (void)
int route_info (const char *afname, int flags)
int route_edit (int action, const char *afname, int flags, char **argv)
int activate_ld (const char *hwname, int fd)
int ip_masq_info (int numeric, int ext)
int INET_rprint (int options)
int INET6_rprint (int options)
int DDP_rprint (int options)
int IPX_rprint (int options)
int NETROM_rprint (int options)
int AX25_rprint (int options)
int INET_rinput (int action, int flags, char **argv)
int INET6_rinput (int action, int flags, char **argv)
int DDP_rinput (int action, int flags, char **argv)
int IPX_rinput (int action, int flags, char **argv)
int NETROM_rinput (int action, int flags, char **argv)
int AX25_rinput (int action, int flags, char **argv)
int aftrans_opt (const char *arg)
void aftrans_def (char *tool, char *argv0, char *dflt)
char * get_sname (int socknumber, char *proto, int numeric)

Variables

int flag_unx
int flag_ipx
int flag_ax25
int flag_ddp
int flag_netrom
int flag_inet
int flag_inet6
char afname []

Define Documentation

#define AFTRANS_CNT   9
 

Definition at line 134 of file net-support.h.

#define AFTRANS_OPTS
 

Value:

{"ax25",    0,  0,  1}, \
    {"ip",      0,  0,  1}, \
    {"ipx",         0,  0,  1}, \
    {"appletalk",   0,  0,  1}, \
    {"netrom",  0,  0,  1}, \
    {"inet",    0,  0,  1}, \
    {"ddp",     0,  0,  1}, \
    {"unix",    0,  0,  1}, \
    {"tcpip",   0,  0,  1}

Definition at line 124 of file net-support.h.

#define E_INTERN   2
 

Definition at line 152 of file net-support.h.

#define E_LOOKUP   6
 

Definition at line 148 of file net-support.h.

#define E_NOSUPP   1
 

Definition at line 153 of file net-support.h.

#define E_NOTFOUND   8
 

Definition at line 146 of file net-support.h.

#define E_OPTERR   3
 

Definition at line 151 of file net-support.h.

#define E_SOCK   7
 

Definition at line 147 of file net-support.h.

#define E_USAGE   4
 

Definition at line 150 of file net-support.h.

#define E_VERSION   5
 

Definition at line 149 of file net-support.h.

#define EINTERN file,
text   
 

Value:

fprintf(stderr, \
    "%s: Internal Error `%s'.\n",file,text);

Definition at line 136 of file net-support.h.

#define ENOSUPP A,
 
 

Value:

fprintf(stderr,\
                                _("%s: feature `%s' not supported.\n" \
                  "Please recompile `net-tools' with "\
                  "newer kernel source or full configuration.\n"),A,B)

Definition at line 139 of file net-support.h.

#define ESYSNOT A,
     fprintf(stderr, _("%s: no support for `%s' on this system.\n"),A,B)
 

Definition at line 144 of file net-support.h.

#define FLAG_CACHE   16
 

Definition at line 89 of file net-support.h.

#define FLAG_EXT   3
 

Definition at line 86 of file net-support.h.

#define FLAG_FIB   32
 

Definition at line 90 of file net-support.h.

#define FLAG_NUM   4
 

Definition at line 87 of file net-support.h.

#define FLAG_SYM   8
 

Definition at line 88 of file net-support.h.

#define FLAG_VERBOSE   64
 

Definition at line 91 of file net-support.h.

#define RTACTION_ADD   1
 

Definition at line 80 of file net-support.h.

#define RTACTION_DEL   2
 

Definition at line 81 of file net-support.h.

#define RTACTION_FLUSH   4
 

Definition at line 83 of file net-support.h.

#define RTACTION_HELP   3
 

Definition at line 82 of file net-support.h.

#define RTACTION_SHOW   5
 

Definition at line 84 of file net-support.h.


Function Documentation

void activate_init void   
 

int activate_ld const char *    hwname,
int    fd
 

void aftrans_def char *    tool,
char *    argv0,
char *    dflt
 

Definition at line 135 of file af.c.

References afname, and aftrans_opt().

int aftrans_opt const char *    arg
 

Definition at line 211 of file af.c.

References _, afname, aftrans, aftrans_t::alias, aftrans_t::flag, and aftrans_t::name.

Referenced by aftrans_def().

int AX25_rinput int    action,
int    flags,
char **    argv
 

int AX25_rprint int    options
 

int DDP_rinput int    action,
int    flags,
char **    argv
 

int DDP_rprint int    options
 

struct aftype* get_afntype int    type
 

Definition at line 195 of file af.c.

References afinit().

struct aftype* get_aftype const char *    name
 

Definition at line 175 of file af.c.

References _, and afinit().

struct hwtype* get_hwntype int    type
 

Definition at line 202 of file hw.c.

References hwinit().

struct hwtype* get_hwtype const char *    name
 

Definition at line 184 of file hw.c.

References hwinit().

char* get_sname int    socknumber,
char *    proto,
int    numeric
 

int getargs char *    string,
char *    arguments[]
 

void getroute_init void   
 

int INET6_rinput int    action,
int    flags,
char **    argv
 

int INET6_rprint int    options
 

int INET_rinput int    action,
int    flags,
char **    argv
 

int INET_rprint int    options
 

int ip_masq_info int    numeric,
int    ext
 

int IPX_rinput int    action,
int    flags,
char **    argv
 

int IPX_rprint int    options
 

int NETROM_rinput int    action,
int    flags,
char **    argv
 

int NETROM_rprint int    options
 

int route_edit int    action,
const char *    afname,
int    flags,
char **    argv
 

int route_info const char *    afname,
int    flags
 

void setroute_init void   
 


Variable Documentation

char afname[]
 

Definition at line 122 of file net-support.h.

Referenced by aftrans_def(), and aftrans_opt().

int flag_ax25
 

Definition at line 116 of file net-support.h.

int flag_ddp
 

Definition at line 117 of file net-support.h.

int flag_inet
 

Definition at line 119 of file net-support.h.

int flag_inet6
 

Definition at line 120 of file net-support.h.

int flag_ipx
 

Definition at line 115 of file net-support.h.

int flag_netrom
 

Definition at line 118 of file net-support.h.

int flag_unx
 

Definition at line 114 of file net-support.h.