Valid values: 0 - 0xff

 

Default value: 0xff

 

 

tosmask

The mask value for TOS field. The mask is applied over the TOS

<tosmask-val>

field value before checking against configured values in 'tosfrom'

 

and 'tosto'.

 

Type: Create Optional

 

Modify Optional

 

Valid values: 0x01 - 0xff

 

Default value: 0xff

 

 

toscmp eq neq lt

TOS comparision type.

leq gt geq any

Type: Create Optional

inrange exrange

Modify Optional

 

Default value: any

 

 

Example:

$ create filter subrule ip ruleid 1 subruleid 2 srcipaddrfrom 172.25.1.125 srcipaddrto 172.25.5.125 dstipaddrfrom 172.25.6.125 dstipaddrto 172.25.10.125 prototypefrom 1 prototypeto 6 srcaddrcmp inrange dstaddrcmp inrange prototypecmp inrange ipsrcaddrmask 0xffffffff ipdstaddrmask 0xffffffff subruleprio high transportHdr ethernet tosfrom 0x01 tosto 0x06 tosmask 0xff toscmp inrange

Output:

Verbose Mode On

Entry Created

Rule Id

: 1

Subrule Id

 

: 2

Start src ip addr

: 172.25.1.125

End src ip addr

 

: 172.25.5.125

Start dest ip addr : 172.25.6.125

End dest ip addr

: 172.25.10.125

Start IP prot type : 1

End IP prot type

: 6

Start TOS value

: 0x01

End TOS value

: 0x06

Src ip addr comp

: inrange

Dest ip addr comp : inrange

IP prot type comp

: inrange

TOS comp type

 

: inrange

IP Src Addr Mask

: 0xffffffff

IP Dest Addr Mask : 0xffffffff

Subrule Priority

: high

 

 

 

Transport Header

: ethernet

 

 

 

TOS Mask

: 0xff

 

 

 

Verbose Mode Off:

Entry Created

434

IDL series User Guide