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

#include <netinet/in.h>
#include <stdio.h>
#include "bytecode.h"
#include "packet.h"

Include dependency graph for packet.c:

Include dependency graph

Go to the source code of this file.


Functions

int fprintf_addr (FILE *f, unsigned int addr)
int fprintf_instr (packet_t *p, FILE *f, instr_t *i)
int fprintf_value (packet_t *p, FILE *f, value_t *v)
void fprintf_packet (FILE *outfile, packet_t *p)

Function Documentation

int fprintf_addr FILE *    f,
unsigned int    addr
 

int fprintf_instr packet_t   p,
FILE *    f,
instr_t   i
 

Definition at line 269 of file snap_bytecode.c.

References ADDI, ADDRV, ANDI, BCASTI, BEZ, BNE, CALLS, COPY_LIT, DIVI, EQADR, EQEXC, EQFLT, EQI, EQINT, EQSTR, EQTUP, EXCV, FADDI, FDIVI, FGEQI, FGTI, FLEQI, FLOATV, FLTI, FMULI, fprintf_opcode(), fprintf_value(), FSUBI, GEQI, GET_OP, GTI, instr_t, INTV, JI, LEQI, LSHLI, LTI, MKTUP, MODI, MULTI, NEQI, NQADR, NQEXC, NQFLT, NQINT, NQSTR, NQTUP, NTH, ORI, PADDR, PAJ, PEXC, PFLT, PINT, POPI, PSTR, PTUP, PULL, PUSH, RSHAI, RSHLI, SNETI, STORE, STRV, SUBI, SVCV, TPAJ, TUPLEV, value_t, and XORI.

Referenced by fprintf_packet().

void fprintf_packet FILE *    outfile,
packet_t   p
 

Definition at line 17 of file packet.c.

References packet_t::code_max, packet_t::code_min, snaphdr::entry_point, fprintf_instr(), fprintf_value(), packet_t::hdr, packet_t::heap_min, instr_t, outfile, packet_t::sp, snaphdr::sport, packet_t::stack_min, and value_t.

Referenced by main().

int fprintf_value packet_t   p,
FILE *    f,
value_t   v
 

Definition at line 149 of file snap_bytecode.c.

References fprintf_value_heap(), packet_t::heap_min, and value_t.

Referenced by fprintf_instr(), and fprintf_packet().