UDP::max_rate¶
Description¶
This command can be used to set/get the maximum transmission rate
(bytes per second) of a UDP connection.
Syntax¶
UDP::max_rate [max-rate]
UDP::max_rate [max-rate]¶
- max-rate sets the maximum transmission rate (bytes per second) to specified value.
- If max-rate is set to 0, it turns off the maximum transmission rate (bytes per second) of a previously specified value. ===Examples===
# Get/set the max rate of the UDP flow.
when CLIENT_ACCEPTED {
# Set the rate to 1Mbps (125,000 bytes per second)
log local0. "UDP set max rate: [UDP::max_rate 125000]"
log local0. "UDP get max rate: [UDP::max_rate]"
}