SysTutorials

Linux Manual Pages › Section 3

packet-transport-udp(3)

packet.transport.udp – UDP module

Description

Decode UDP layer.

Classes

class UDP(baseobj.BaseObj)

UDP object
Usage:
 from packet.transport.udp import UDP
 x = UDP(pktt)
Object definition:
UDP(
 src_port = int,
 dst_port = int,
 length = int,
 checksum = int,
 data = string, # raw data of payload if unable to decode
)
Methods defined here:
---------------------
__init__(self, pktt)
Constructor
Initialize object's private data.
pktt:
Packet trace object (packet.pktt.Pktt) so this layer has access to the parent layers.

See Also

baseobj(3), packet.application.rpc(3)

Bugs

No known bugs.

Author

Jorge Mora (mora [at] netapp.com)