[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 - DocumentationSNMP Plus a Lightweight API for SNAP Handlingsnap-1.1-wjdb/lib/snap.hGo to the documentation of this file.00001 /* 00002 * INET An implementation of the TCP/IP protocol suite for the LINUX 00003 * operating system. INET is implemented using the BSD Socket 00004 * interface as the means of communication with the user level. 00005 * 00006 * Definitions for the SNAP protocol. 00007 * 00008 */ 00009 #ifndef _SNAP_H 00010 #define _SNAP_H 00011 00012 #include <sys/cdefs.h> 00013 #include <sys/types.h> 00014 00015 struct snaphdr { 00016 u_int32_t saddr; 00017 u_int32_t daddr; 00018 u_int8_t version; /* SNAP version */ 00019 u_int8_t flags; /* any flags */ 00020 u_int16_t sport; /* source port (for errors) */ 00021 u_int16_t entry_point; /* entry point (# instrs) */ 00022 u_int16_t code_sizeb; /* code size in bytes */ 00023 u_int16_t heap_sizeb; /* heap size in bytes */ 00024 u_int16_t stack_sizeb; /* stack size in bytes */ 00025 }; 00026 00027 #define IPPROTO_SNAP 130 00028 00029 #endif /* snap.h */ |