packet.nfs.mount3_const (3) Linux Manual Page
packet.nfs.mount3_const – MOUNTv3 constants module Bugs No known bugs. Author Jorge Mora (mora [at] netapp.com)
packet.nfs.mount3_const – MOUNTv3 constants module Bugs No known bugs. Author Jorge Mora (mora [at] netapp.com)
packet.nfs.mount3 – MOUNTv3 decoding module Classes class DUMP3res(baseobj.BaseObj) struct DUMP3res { mountentry *mountlist; }; Methods defined here: ——————— __init__(self, unpack) class EXPORT3res(baseobj.BaseObj) struct EXPORT3res { exportnode3 *exports; }; Methods defined here: ——————— __init__(self, unpack) class MNT3args(baseobj.BaseObj) struct MNT3args { dirpath3 path; }; Methods defined here: ——————— __init__(self, unpack) class MNT3res(baseobj.BaseObj) union switch MNT3res (mountstat3 status)…
packet.link.macaddr – MacAddr module Description Create an object to represent a MAC address. A MAC address is given either by a series of hexadecimal numbers or using the ":" notation. It provides a mechanism for comparing this object with a regular string. Classes class MacAddr(__builtin__.str) MacAddr address object Usage: from packet.link.macaddr import MacAddr mac =…
packet.link.ethernet – ETHERNET module Description Decode ethernet layer (RFC 894) Ethernet II. Classes class ETHERNET(baseobj.BaseObj) Ethernet object Usage: from packet.link.ethernet import ETHERNET x = ETHERNET(pktt) Object definition: ETHERNET( dst = MacAddr(), # destination MAC address src = MacAddr(), # source MAC address type = int, # payload type data = string, # raw data of…
packet.internet.ipv6addr – IPv6Addr module Description Create an object to represent an IPv6 address. An IPv6 address is given either by a series of hexadecimal numbers or using the ":" notation. It provides a mechanism for comparing this object with a regular string. It also takes care of ‘::’ notation and leading zeroes. Classes class IPv6Addr(__builtin__.str)…
packet.internet.ipv6 – IPv6 module Description Decode IP version 6 layer. Extension headers are not supported. Classes class IPv6(packet.internet.ipv4.IPv4) IPv6 object Usage: from packet.internet.ipv6 import IPv6 x = IPv6(pktt) Object definition: IPv6( version = int, traffic_class = int, flow_label = int, total_size = int, protocol = int, hop_limit = int, src = IPv6Addr(), dst = IPv6Addr(),…
packet.internet.ipv4 – IPv4 module Description Decode IP version 4 layer. Classes class Flags(baseobj.BaseObj) Flags object Methods defined here: ——————— __init__(self, data) Constructor which takes a single byte as input class IPv4(baseobj.BaseObj) IPv4 object Usage: from packet.internet.ipv4 import IPv4 x = IPv4(pktt) Object definition: IPv4( version = int, IHL = int, # Internet Header Length (in…
packet.application.rpc_creds – RPC Credentials module Description Decode RPC Credentials. Classes class AuthNone(baseobj.BaseObj) AuthNone object Methods defined here: ——————— __init__(self, unpack) Constructor which takes the Unpack object as input Data and other attributes defined here: flavor = 0 class AuthSys(baseobj.BaseObj) AuthSys object Methods defined here: ——————— __init__(self, unpack) Constructor which takes the Unpack object as input…
packet.application.rpc_const – RPC constants module Description Provide constant values and mapping dictionaries for the RPC layer. Bugs No known bugs. Author Jorge Mora (mora [at] netapp.com)
packet.application.rpc – RPC module Description Decode RPC layer. Classes class Header(baseobj.BaseObj) Header object Methods defined here: ——————— __init__(self, size, last_fragment) Constructor which takes the size and last fragment as inputs class Prog(baseobj.BaseObj) Prog object Methods defined here: ——————— __init__(self, unpack) Constructor which takes the Unpack object as input class RPC(packet.application.gss.GSS) RPC object Usage: from packet.application.rpc…
packet.application.gss_const – GSS constants module Description Provide constant values and mapping dictionaries for the GSS layer. Bugs No known bugs. Author Jorge Mora (mora [at] netapp.com)
packet.application.gss – GSS module Description Decode GSS layers. NOTE: Only procedures RPCSEC_GSS_INIT and RPCSEC_GSS_DATA are supported Classes class GSS(baseobj.BaseObj) GSS Data object This is a base object and should not be instantiated. It gives the following methods: # Decode data preceding the RPC payload when flavor is RPCSEC_GSS x.decode_gss_data() # Decode data following the RPC…
pack_ungetc – Moves one single character back to the input buffer. Allegro game programming library. Synopsis #include <allegro.h> int pack_ungetc(int c, PACKFILE *f); Description Puts a character back to the file’s input buffer. Like with ungetc from libc, only a single push back is guaranteed. Note: pack_fgets internally uses pack_ungetc, so never use pack_ungetc directly…
pack_fwrite – Writes n bytes to the stream. Allegro game programming library. Synopsis #include <allegro.h> long pack_fwrite(const void *p, long n, PACKFILE *f); Description Writes `n’ bytes to the stream `f’ from memory location pointed to by `p’. Return Value Returns the number of bytes written, which will be less than n if an error…
pack_fseek – Seeks inside a stream. Allegro game programming library. Synopsis #include <allegro.h> int pack_fseek(PACKFILE *f, int offset); Description Moves the position indicator of the stream `f’. Unlike the standard fseek() function, this only supports forward movements relative to the current position and in read-only streams, so don’t use negative offsets. Note that seeking is…
pack_fread – Reads n bytes from the stream. Allegro game programming library. Synopsis #include <allegro.h> long pack_fread(void *p, long n, PACKFILE *f); Description Reads `n’ bytes from the stream `f’, storing them at the memory location pointed to by `p’. Example: unsigned char buf[256]; … if (pack_fread(buf, 256, input_file) != 256) abort_on_error("Truncated input file!"); Return…
pack_fputs – Writes a string to the stream. Allegro game programming library. Synopsis #include <allegro.h> int pack_fputs(const char *p, PACKFILE *f); Description Writes a string to the stream `f’. The input string is converted from the current text encoding format to UTF-8 before writing. Newline characters are written as `\r\n’ on DOS and Windows platforms….
pack_fopen_vtable – Allegro game programming library. Synopsis #include <allegro.h> PACKFILE *pack_fopen_vtable(const PACKFILE_VTABLE *vtable, void *userdata); Description Creates a new packfile structure that uses the functions specified in the vtable instead of the standard functions. The data pointer by `vtable’ and `userdata’ must remain available for the lifetime of the created packfile. While the created packfile…
pack_fopen_chunk – Opens a sub-chunk of a file. Allegro game programming library. Synopsis #include <allegro.h> PACKFILE *pack_fopen_chunk(PACKFILE *f, int pack); Description Opens a sub-chunk of a file. Chunks are primarily intended for use by the datafile code, but they may also be useful for your own file routines. A chunk provides a logical view of…
pack_fopen – Opens a file according to mode. Allegro game programming library. Synopsis #include <allegro.h> PACKFILE *pack_fopen(const char *filename, const char *mode); Description Opens a file according to mode, which may contain any of the flags: `r’ – open file for reading. `w’ – open file for writing, overwriting any existing data. `p’ – open…