beautypg.com

Zqosd – Znyx Networks bh5700 User Manual

Page 120

background image

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 at 12

ip dst a.b.c.d/n

u32 at 16

ip tos

u8 at 1

ip dsfield

u8 at 1

ip protocol

u8 at 9

ip precedence

u8 at 1

ip dport

u16 at 22

ip sport

u16 at 20

ip icmp_type

u8 at 20

ip icmp_code

u8 at 21

udp src

u16 at 20

udp dst

u16 at 22

tcp src

u16 at 20

tcp dst

u16 at 22

icmp type

u8 at 20

icmp code

u8 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