
14 Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
2
Example
OS_IP::raw
Description
Returns the data within an IP packet including the IP header.
Context
Called in context of TCP, UDP and HTTP.
Usage
Used in performing load-balancing based on the whole IP packet.
Input Parameters
None.
Return Values
The following table contains the return values.
TABLE 10 Return Values
Name Type Description
string Raw data within the IP packet.
use OS_IP;
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
$options = OS_IP::options;
$option_len = OS_IP::getOptionsLength;
if( defined $options){
if(defined $option_len){
#process options
} else {
OS_SLB::reset_client;
}
}
}
Komentarze do niniejszej Instrukcji