Provides access to fields in a UDP header.
| Instance Variables | |
| src_port | udp.src_port -> anInteger |
| Source Port (16-bit) | |
| dst_port | udp.dst_port-> anInteger |
| Destination Port (16-bit) | |
| len | udp.len -> anInteger |
| UDP length, i.e. header + payload | |
| checksum_ok | tcp.checksum -> true, false or none |
| None if the UDP payload is incomplete, True if the UDP checksum is correct |
|
| checksum | udp.checksum -> anInteger |
| UDP Checksum |
|
| payload | udp.payload -> aPayloadObject |
| None if UDP had no payload, otherwise an object containing the packet's UDP payload |
|
Nevil Brownlee
Fri, 15 Apr 16 (NZST)