Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Uživatelský manuál Strana 22

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 132
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 21
10 Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
2
Example
OS_IP::options
Description
Returns options in the current packet if present otherwise it will return undefined.
Context
Called in context of TCP, UDP and HTTP.
Usage
Used in performing load-balancing based on the options.
Input Parameters
None.
Return Values
The following table contains the return values.
TABLE 6 Return Values
Name Type Description
hexadecimal string Options present in current
packet.
use OS_IP;
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
#retrieve type of service flag
my $tos = OS_IP::tos;
if ($tos == 0){
OS_SLB::forward(3);
} elsif ($tos == 1) {
OS_SLB::forward(4);
}
}
Zobrazit stránku 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 131 132

Komentáře k této Příručce

Žádné komentáře