Brocade Virtual ADX OpenScript API Guide 19
53-1003243-01
Methods
3
Example
OS_TCP::flags
Description
Returns the TCP flag set in packet.
Context
Called in context of TCP and HTTP.
Usage
Can be used to perform load-balancing based on the flags.
Input Parameters
None.
Return Values
The hexadecimal number of the TCP flags.
Example
use OS_TCP;
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
if(OS_TCP::dst !=80){
OS_SLB::reset_client;
} else {
OS_SLB::forward(4);
}
}
use OS_TCP;
use OS_SLB;
sub TCP_CLIENT_ESTABLISHED {
if(OS_TCP::flags == 34){
OS_SLB::reset_client;
}
}
Komentarze do niniejszej Instrukcji