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

#include <assert.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <linux/ip.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "../lib/config.h"
#include "../lib/d_printf.h"
#include "../lib/bytecode.h"
#include "../lib/io.h"
#include "../lib/memalloc.h"
#include "../lib/packet.h"
#include "snapparse.h"
#include "labels.h"
#include "../lib/consts.h"

Include dependency graph for snapas.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 yyparse (void)
int main (int argc, char **argv)
void usage (int argc, char **argv)

Variables

int yydebug
FILE * yyin = (FILE *) 0
int outfd
char * outfilename = NULL
char * infilename
packet_tp
instr_tcbuf
value_tsbuf
void * hbuf
char * pbuf
int noop

Function Documentation

char* basename const char *   
 

int main int    argc,
char **    argv
 

Definition at line 55 of file snapas.c.

References cbuf, packet_t::code_max, packet_t::code_min, d_printf(), packet_t::h_alloc_heap_max, packet_t::h_alloc_ptr, hbuf, packet_t::hdr, packet_t::heap_max, packet_t::heap_min, instr_t, packet_t::is_contiguous, buffer_t::lenb, marshal_packet(), memalloc, noop, outfd, parse_cmdline(), patch_jumps(), packet_t::pc, buffer_t::s, sbuf, packet_t::sp, packet_t::stack_max, packet_t::stack_min, value_t, yydebug, and yyparse().

void parse_cmdline int    argc,
char **    argv
 

Definition at line 119 of file snapas.c.

References basename(), infilename, memalloc, outfd, outfilename, and usage().

void usage int    argc,
char **    argv
 

Definition at line 113 of file snapas.c.

References basename().

int yyparse void   
 

Referenced by main().


Variable Documentation

instr_t* cbuf
 

Definition at line 44 of file snapas.c.

Referenced by main().

void* hbuf
 

Definition at line 46 of file snapas.c.

Referenced by main().

char* infilename
 

Definition at line 41 of file snapas.c.

Referenced by parse_cmdline().

int noop
 

Definition at line 49 of file snapas.c.

Referenced by main(), and yyparse().

int outfd
 

Definition at line 39 of file snapas.c.

Referenced by main(), and parse_cmdline().

char* outfilename = NULL
 

Definition at line 40 of file snapas.c.

Referenced by parse_cmdline().

packet_t* p
 

Definition at line 43 of file snapas.c.

char* pbuf
 

Definition at line 47 of file snapas.c.

value_t* sbuf
 

Definition at line 45 of file snapas.c.

Referenced by main().

int yydebug
 

Definition at line 36 of file snapas.c.

Referenced by main().

FILE * yyin = (FILE *) 0
 

Definition at line 265 of file snaplex.c.

Referenced by snap_yy_input().