[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/utils/snapdis.c File Reference

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include "../lib/bytecode.h"
#include "../lib/packet.h"
#include "../lib/io.h"
#include "../lib/memalloc.h"
#include "../lib/d_printf.h"

Include dependency graph for snapdis.c:

Include dependency graph

Go to the source code of this file.


Functions

char * basename (const char *)
void parse_cmdline (int argc, char **argv)
int main (int argc, char **argv)
void usage (int argc, char **argv)

Variables

int infd
FILE * outfile

Function Documentation

char* basename const char *   
 

Referenced by parse_cmdline(), parse_cmdline_snap(), and usage().

int main int    argc,
char **    argv
 

Definition at line 28 of file snapdis.c.

References d_printf(), file_to_str(), fprintf_packet(), infd, buffer_t::lenb, outfile, parse_cmdline(), buffer_t::s, and unmarshal_packet().

void parse_cmdline int    argc,
char **    argv
 

Definition at line 55 of file snapdis.c.

References basename(), infd, infilename, outfile, outfilename, and usage().

Referenced by init_request(), and main().

void usage int    argc,
char **    argv
 

Definition at line 49 of file snapdis.c.

References basename().

Referenced by parse_cmdline(), and parse_cmdline_snap().


Variable Documentation

int infd
 

Definition at line 21 of file snapdis.c.

Referenced by main(), and parse_cmdline().

FILE* outfile
 

Definition at line 22 of file snapdis.c.

Referenced by fprintf_packet(), main(), and parse_cmdline().