Os_ip::getheaderlength, Example, Description – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual

Page 23: Context, Usage, Input parameters, Return values

Advertising
background image

Brocade Virtual ADX OpenScript API Guide

11

53-1003243-01

Methods

2

Example

OS_IP::getHeaderLength

Description

Returns the IP header length in bytes. Header length does not include the length of options
present.

Context

Called in context of TCP, UDP and HTTP.

Usage

Used in performing load-balancing based on the header length.

Input Parameters

None.

Return Values

The following table contains the return values.

TABLE 7

Return Values

Name

Type

Description

byte

Header length in bytes.

use OS_IP;

use OS_SLB;

use OS_HTTP_REQUEST;

sub HTTP_REQUEST{

$options = OS_IP::options;

if(defined $options){

#process options;

OS_SLB::reset_client;

}

}

Advertising