uda-offsets

Specifies the user-defined ACL (UDA) offsets for a UDA profile.

Syntax

uda-offsets { [ offset-base-1 ] [ negative ] { offset-1 | ignore } } { [ offset-base-2 ] [ negative ] { offset-2 | ignore } } { [ offset-base-3 ] [ negative ] { offset-3 | ignore } } { [ offset-base-4 ] [ negative ] { offset-4 | ignore } }
no uda-offsets { [ offset-base-1 ] [ negative ] { offset-1 | ignore } } { [ offset-base-2 ] [ negative ] { offset-2 | ignore } } { [ offset-base-3 ] [ negative ] { offset-3 | ignore } } { [ offset-base-4 ] [ negative ] { offset-4 | ignore } }

Command Default

UDA offsets are not defined.

Parameters

offset-base-1, offset-base-2, offset-base-3, offset-base-4
Specifies an offset base. The options are as follows:
packet-start
(Default) The offset base is the start of the packet. This option is applicable to specify a field within 63 bytes of the start of the packet.
first-header
The offset base is the first parsed header after Ethernet. For example, in the following header, first-header points to MPLS:
<MAC><VLAN><MPLS><IPV6><UDP><SIP>
second-header
The offset base is the second parsed header after Ethernet. For example, in the following header, second-header points to IPv6:
<MAC><VLAN><MPLS><IPV6><UDP><SIP>
third-header
The offset base is the third parsed header after Ethernet. For example, in the following header, third-header points to UDP:
<MAC><VLAN><MPLS><IPV6><UDP><SIP>
fourth-header
The offset base is the fourth parsed header after Ethernet. For example, in the following header, fourth-header points to SIP.
<MAC><VLAN><MPLS><IPV6><UDP><SIP>
negative
Specifies a negative offset. If you do not specify this optional keyword, the offset is positive.
offset-1, offset-2, offset-3. offset-4
Specifies the offset. Valid values are from 1 through 63.
ignore
Configures ignoring this offset.

Modes

UDA-profile configuration mode

Usage Guidelines

For any of the four offsets not defined, you need to specify ignore.

To delete UDA-profile offsets, use the no form of this command. If you need to change the offset values, you first need to delete the current values.

Examples

The following example creates a UDA profile and then defines offsets from the packet start.

device# configure terminal
device(config)# uda-key profile uda-prof_01
device(config-uda-key)# uda-offsets 0 4 8 12

The following example uses the second header (UDP) as the offset base and specifies 49 as the offset.

device# configure terminal
device(config)# uda-key profile uda-prof_02
device(config-uda-key)# uda-offsets  second-header 49 ignore ignore ignore