Package dpkt :: Module netflow :: Class NetflowBase
[hide private]
[frames] | no frames]

Class NetflowBase

source code

 object --+    
          |    
dpkt.Packet --+
              |
             NetflowBase
Known Subclasses:

Base class for Cisco Netflow packets.

Nested Classes [hide private]
  NetflowRecordBase
Base class for netflow v1-v7 netflow records.

Inherited from dpkt.Packet: __metaclass__

Instance Methods [hide private]
 
__len__(self) source code
 
__str__(self)
str(x)
source code
 
unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
source code

Inherited from dpkt.Packet: __getitem__, __init__, __repr__, pack, pack_hdr

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  __hdr__ = (('version', 'H', 1), ('count', 'H', 0), ('sys_uptim...
  __hdr_defaults__ = {'count': 0, 'sys_uptime': 0, 'unix_nsec': ...
  __hdr_fields__ = ['version', 'count', 'sys_uptime', 'unix_sec'...
  __hdr_fmt__ = '>HHIII'
  __hdr_len__ = 16
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__len__(self)
(Length operator)

source code 
Overrides: dpkt.Packet.__len__

__str__(self)
(Informal representation operator)

source code 
str(x)

Overrides: object.__str__
(inherited documentation)

unpack(self, buf)

source code 
Unpack packet header fields from buf, and set self.data.

Overrides: dpkt.Packet.unpack
(inherited documentation)

Class Variable Details [hide private]

__hdr__

Value:
(('version', 'H', 1),
 ('count', 'H', 0),
 ('sys_uptime', 'I', 0),
 ('unix_sec', 'I', 0),
 ('unix_nsec', 'I', 0))

__hdr_defaults__

Value:
{'count': 0,
 'sys_uptime': 0,
 'unix_nsec': 0,
 'unix_sec': 0,
 'version': 1}

__hdr_fields__

Value:
['version', 'count', 'sys_uptime', 'unix_sec', 'unix_nsec']