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

  • 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 17
6 Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
2
Return Values
The following table contains the return values.
Example
OS_IP::dst
Description
Returns the destination IP address of an incoming packet.
Context
Called in context of TCP, UDP and HTTP.
Usage
Used in performing load-balancing based on the destination address. This API supports both IPv4
and IPv6.
Input Parameters
None.
Return Values
The following table contains the return values.
TABLE 1 Return Values
Name Type Description
string String representing Source IP
address
TABLE 2 Return Values
Name Type Description
string A string representing a
destination IP address.
use OS_IP;
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
my $client_ip = OS_IP::src;
print "Client IP Address - $client_ip\n";
OS_HTTP_REQUEST::header("X-Forwarded-For", "$client_ip");
OS_SLB::forward("30");
}
Zobrazit stránku 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 131 132

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

Žádné komentáře