SCTP::payload

Description

Returns the accumulated SCTP data content, or replaces collected payload with the specified data.

Syntax

SCTP::payload [<size>]
SCTP::payload replace <offset> <length> <data>
SCTP::payload length
SCTP::payload ppi
SCTP::payload sid

SCTP::payload [<size>]

  • Returns the accumulated SCTP data content.

SCTP::payload replace <offset> <length> <data>

  • Replaces collected payload with the given data.

SCTP::payload length

  • Returns the amount of accumulated SCTP data content in bytes.

SCTP::payload ppi

  • Returns the protocol payload identification.

SCTP::payload sid

  • Returns the stream id.

Examples

when CLIENT_ACCEPTED {
  SCTP::collect 15
}
when CLIENT_DATA {
  if { [SCTP::payload 15] contains "XYZ" } {
     pool xyz_servers
  } else {
     pool web_servers
 }
 SCTP::release
}