protocolOffset

protocolOffset - configure the offset used to generate protocol header and contents.

SYNOPSIS

protocolOffset sub-command options

DESCRIPTION

For load modules which support this feature, this allows the protocol headers and contents to be generated at other than the standard location (byte 14) within a packet.

Note that when using ATM ports, different types of ATM encapsulation result in different length headers, as discussed in atmHeader. The data portion of the packet normally follows the header, except in the case of the two LLC Bridged Ethernet choices, where 12 octets of MAC address and 2 octets of Ethernet type follow the header. The offsets used in this command is with respect to the beginning of the AAL5 packet and must be adjusted by hand to account for the header.

STANDARD OPTIONS
offset

The new offset for protocol header location. (default = 14)

userDefinedTag

The new contents for the old protocol header location (byte 14). If the tag is smaller than the space between the old and new offset, then zeroes are used to fill in the remainder. If the tag is larger than the space, it is truncated. (default = {00 00})

COMMANDS

The protocolOffset command is invoked with the following sub-commands. If no sub-command is specified, returns a list of all sub-commands available.

protocolOffset cget option

Returns the current value of the configuration option given by option. Option may have any of the values accepted by the protocolOffset command.

protocolOffset config option value

Modify the configuration options of the port. If no option is specified, returns a list describing all of the available options (see STANDARD OPTIONS) for port.

protocolOffset set chasID cardID portID

Sets the configuration of the protocol offset in IxHAL on port with id portID on card cardID, chassis chasID by reading the configuration option values set by the protocolOffset config option value command. Specific errors are:

protocolOffset setDefault

Sets to IxTclHal default values for all configuration options.

EXAMPLES

protocolOffset setDefault

protocol config -ethernetType protocolOffsetType

protocolOffset config -offset 20

protocolOffset config -userDefinedTag {01 02 03 04 05 06}

 

if [protocolOffset set $chas $card $port] {

ixPuts "Error in protocolOffset set for $chas $card $port"

}

 

SEE ALSO

ip, ipx, protocol.