For the keyword sample, I've seen it in the README, and here is what I suggest :
It seems that this keyword is used to verify if the packet is an icmp one in this
example.
I think that is a simpler version of match, which need a selector made of many
SAMPLE,
whereas sample only need one sample directly. I mean 'sample' is followed by a
value,
and match is followed by a comparison regexp.
According to me, the expression :
'sample ip protocol 1 0xff'
could have been replace by
'sample icmp'
an other example with the difference between match and sample :
'match ip protocol 0x6'
could have been
'sample ip protocol 6 0xff'
or
'sample tcp'
Concerning the keyword order, do you have some examples?
Pawel Krawczyk wrote:
> On Wed, 20 Oct 1999, Sebastien wrote:
>
> > am I right or wrong with that :
> > hashkey mask 0x00ff0000 at 8
> > means the hashkey is at offset 8 with a mask of 0x00ff0000 ????
> > But this mask will result a value greater than 256??? That's not possible...
> > Where am I wrong? is the 'offset' keyword before important in this line?
> > what is handle ::1 ????
> > what is ht 800:: ????
> > > order and sample
> > Never seen those keywords used...
>
> I found that in TC source code, and it is used in README.iproute+tc
> in TC tarball. This example has comments, but I don't understand them
> much more than the example itself. Howerver, the hashkey command
> seems to specify that the data pointed by "mask ... at" is to be used
> as key. Alexey used this and the "offset" keyword in example described
> something like "the table is hashed by the protocol field". Maybe you
> can get the idea of what's that about before I have time again to
> dig deeply in tc code :)
>
> --
> Pawel Krawczyk, CETI internet, Krakow. http://ceti.pl/~kravietz/
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]