Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Instrukcja Użytkownika Strona 19

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 132
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 18
Brocade Virtual ADX OpenScript API Guide 7
53-1003243-01
Methods
2
Example
OS_IP::protocol
Description
Returns the protocol type of the current packet.
Context
Called in context of TCP, UDP and HTTP.
Usage
Used in performing load-balancing based on the protocol type.
Input Parameters
None.
Return Values
The following table contains sample return values.
TABLE 3 Return Values
Name Type Description
PROTOCOL_TCP 6 (integer) TCP is the protocol type of the current packet.
PROTOCOL_UDP 17 (integer) UDP is the protocol type of the current packet.
use OS_IP;
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
if( OS_IP::dst eq '192.168.1.1'){
OS_SLB::reset_client;
} else {
OS_SLB::forward();
}
}
Przeglądanie stron 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 131 132

Komentarze do niniejszej Instrukcji

Brak uwag