Class: Trema::SetTransportDstPort

Inherits:
SetTransportPort show all
Defined in:
ruby/trema/set-transport-dst-port.rb

Overview

An action to modify the destination TCP/UDP port of a packet.

Instance Attribute Summary

Attributes inherited from SetTransportPort

#port_number

Instance Method Summary (collapse)

Constructor Details

- (SetTransportDstPort) initialize(port_number)

Creates an action to modify the destination TCP/UDP port of a packet.

Examples:

SetTransportDstPort.new( 5555 )

Parameters:

  • port_number (Integer)

    the destination TCP/UDP port number. Any numeric 16-bit value.

Raises:

  • (ArgumentError)

    if port_number is not an unsigned 16-bit Integer.

  • (TypeError)

    if port_number is not an Integer.



39
40
41
# File 'ruby/trema/set-transport-dst-port.rb', line 39

def initialize(port_number)
  super port_number
end