[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
|
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/libsnap.c File Reference#include <stdarg.h>
#include <pthread.h>
#include <assert.h>
#include <features.h>
#include <getopt.h>
#include <net/if_arp.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <libgen.h>
#include <asm/types.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include "d_printf.h"
#include "snapnet.h"
#include "packet.h"
#include "snap.h"
#include "version.h"
#include "interp.h"
#include "snap_kern_iface.h"
#include "snap_svc_handler.h"
Include dependency graph for libsnap.c:
Go to the source code of this file.
Define Documentation
|
Value: ((unsigned char *)&(addr))[0], \
((unsigned char *)&(addr))[1], \
((unsigned char *)&(addr))[2], \
((unsigned char *)&(addr))[3]
Definition at line 42 of file libsnap.c.
Referenced by main(), and parse_cmdline_snap(). |
Function Documentation
int add_snap_handler |
( |
fd_set * |
activeset |
) |
|
|
void clear_snap_handler |
( |
fd_set * |
activeset |
) |
|
|
int handle_snap_request |
( |
|
) |
|
|
int init_snap |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
|
|
int isset_snap_handler |
( |
fd_set * |
activeset |
) |
|
|
void parse_cmdline_snap |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
|
|
void parse_cmdline_snap |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
|
|
|
Definition at line 79 of file libsnap.c.
References cmdline_args::argc, bindaddr, d_printf(), ethsock, gc, glob_conf::herehint, losock, maxfd, parse_cmdline_snap(), ra_space, rawiprecvsock, set_debug_level(), and snap_svc_handler_init().
Referenced by init_snap(). |
void usage |
( |
char * |
myname |
) |
|
|
Variable Documentation
struct sockaddr_in bindaddr
|
|
unsigned char ra_space[4]
|
|
struct sockaddr_in udpaddr
|
|
|