BWC::mark

Description

This command can assign tos and qos values to a flow after a flow has been assigned a policy. This can be done both at policy level and at category level.

Syntax

BWC::mark <session> <tos|qos <value | 'passthrough'>>
BWC::mark <session> <app_name> <tos|qos <value | 'passthrough'>>

BWC::mark <session> <tos|qos <value | ‘passthrough’>>

  • Apply tos/qos value

BWC::mark <session> <app_name> <tos|qos <value | ‘passthrough’>>

  • Apply tos/qos value to specific category

Examples

For policy:
when CLIENT_ACCEPTED {
set mycookie [IP::remote_addr]:[TCP::remote_port]
BWC::policy attach gold_user $mycookie
BWC::color set gold_user p2p
BWC::mark $mycookie tos 33
}
For category:
BWC::mark $mycookie $bwc_app_policy tos 44