All of lore.kernel.org
 help / color / mirror / Atom feed
From: DervishD <lartc@dervishd.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] match'ing packets by size
Date: Mon, 19 Dec 2005 15:21:36 +0000	[thread overview]
Message-ID: <20051219152136.GB17776@DervishD> (raw)
In-Reply-To: <20051219104355.6034e25c@pulsar.inexo.com.br>

    Hi Ethy :)

 * Ethy H. Brito <ethy.brito@inexo.com.br> dixit:
> match u16 0x0000 0xffb0 at 2
> 
> With this match he says that packet with less than 80 bytes will match the rule.

    That's right.
 
> Well, 0xffb0 translates to 1111 1111 1011 0000 (which is -80 BTW).

    It is a mask, not a number (and certainly not a signed one), so
there's no point in considering it -80. It is just a mask.
 
> Am I correct or I completely misunderstood it?

    You're right, packet sizes between 16 and 63 (both included)
won't match the rule.

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

  reply	other threads:[~2005-12-19 15:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-19 12:43 [LARTC] match'ing packets by size Ethy H. Brito
2005-12-19 15:21 ` DervishD [this message]
2005-12-19 16:49 ` Ethy H. Brito
2005-12-19 17:28 ` DervishD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051219152136.GB17776@DervishD \
    --to=lartc@dervishd.net \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.