packet.transport.udp man page

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@netapp.com)

Referenced By

packet.internet.ipv4(3), packet.internet.ipv6(3).

23 November 2015 NFStest 2.1.1 udp 1.0