packet.transport.udp (3) - Linux Manuals

packet.transport.udp: UDP module

NAME

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.

BUGS

No known bugs.

AUTHOR

Jorge Mora (mora [at] netapp.com)