Znyx Networks bh5700 Manuale Utente

Pagina di 359
for a u16 match.  In many cases, there is a field name that can be used for the match, eliminating 
the need to specify the offset.
U match selectors
Field Match
Equivalent
ip src a.b.c.d/n
u32 <value> <mask> at 12
ip dst a.b.c.d/n
u32 <value> <mask> at 16
ip tos <value> <mask>
u8 <value> <mask> at 1
ip dsfield <value> <mask>
u8 <value> <mask> at 1
ip protocol <value> <mask>
u8 <value> <mask> at 9
ip precedence <val> <mask>
u8 <val> <mask> at 1
ip dport <value> <mask>
u16 <value> <mask> at 22
ip sport <value> <mask>
u16 <value> <mask> at 20
ip icmp_type <val> <mask>
u8 <val> <mask> at 20
ip icmp_code <val> <mask>
u8 <val> <mask> at 21
udp src <value> <mask>
u16 <value> <mask> at 20
udp dst <value> <mask>
u16 <value> <mask> at 22
tcp src <value> <mask>
u16 <value> <mask> at 20
tcp dst <value> <mask>
u16 <value> <mask> at 22
icmp type <value> <mask>
u8 <value> <mask> at 20
icmp code <value> <mask>
u8 <value> <mask> at 21
Table 7.3: U Match Selectors
Note that specifying a tcp, udp, or icmp field does not automatically include a match for the 
appropriate IP protocol.  To insure that only the desired packets are filtered, include a match for 
IP protocol as well as the port or type.  For example:
u32 match ip protocol 6 0xff match tcp dst 8 0xffff
Or
u32 match ip protocol 17 FF match ip sport 20 0xffff
zqosd
Thus far, tc has been used without zqosd.  It is not sufficient to install software rules on the 
Ethernet Switch Blade User's Guide
release  3.2.2j
page 120