Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Bedienungsanleitung Seite 18

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 132
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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");
}
Seitenansicht 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 131 132

Kommentare zu diesen Handbüchern

Keine Kommentare