UDP::local_port

Description

Returns the local UDP port/service number.

Syntax

UDP::local_port [clientside | serverside]

UDP::local_port

  • Returns the local UDP port/service number.

UDP::local_port clientside

  • Returns the local UDP port/service number of the clientside connection.

UDP::local_port serverside

  • Returns the local UDP port/service number of the serverside connection.

Examples

when CLIENT_ACCEPTED {
  if { [matchclass [UDP::local_port] equals $::ValidUDPPorts ] } {
    pool udp_pool
  } else {
     discard
  }
}