Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Manuel d'utilisateur Page 31

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 132
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 30
Brocade Virtual ADX OpenScript API Guide 19
53-1003243-01
Methods
3
Example
OS_TCP::flags
Description
Returns the TCP flag set in packet.
Context
Called in context of TCP and HTTP.
Usage
Can be used to perform load-balancing based on the flags.
Input Parameters
None.
Return Values
The hexadecimal number of the TCP flags.
Example
use OS_TCP;
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
if(OS_TCP::dst !=80){
OS_SLB::reset_client;
} else {
OS_SLB::forward(4);
}
}
use OS_TCP;
use OS_SLB;
sub TCP_CLIENT_ESTABLISHED {
if(OS_TCP::flags == 34){
OS_SLB::reset_client;
}
}
Vue de la page 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 131 132

Commentaires sur ces manuels

Pas de commentaire