[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/src/snap_exec.c File Reference#include <time.h>
#include <sys/time.h>
#include "../lib/libsnap.h"
#include <arpa/inet.h>
#include <assert.h>
#include <fcntl.h>
#include <netinet/ip.h>
#include <netdb.h>
#include <netinet/in.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "../lib/snap.h"
#include "../lib/bytecode.h"
#include "../lib/packet.h"
#include "../lib/d_printf.h"
#include "../lib/memalloc.h"
#include "../lib/io.h"
#include <pthread.h>
#include "snap_demux_handler.h"
Include dependency graph for snap_exec.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 35 of file snap_exec.c. |
Function Documentation
char* basename |
( |
const char * |
|
) |
|
|
int compare_longints |
( |
const void * |
a, |
|
|
const void * |
b |
|
) |
|
|
int init_request |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
|
|
|
Definition at line 64 of file snap_exec.c.
References d_printf(), snaphdr::daddr, destaddr, file_to_str(), snaphdr::flags, infd, IPPROTO_SNAP, buffer_t::lenb, out_ttl, parse_cmdline(), ra_space, receiveport, snaphdr::saddr, sd, snaphdr::sport, srcaddr, and snaphdr::version. |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
|
|
void parse_cmdline |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
|
|
void usage |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
|
|
Variable Documentation
struct sockaddr_in destaddr
|
|
struct sockaddr_in localaddr
|
|
unsigned char out_ttl = 32
|
|
short int receiveport = 7777
|
|
struct sockaddr_in srcaddr
|
|
|