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 17:28:25 +0000	[thread overview]
Message-ID: <20051219172825.GC19196@DervishD> (raw)
In-Reply-To: <20051219104355.6034e25c@pulsar.inexo.com.br>

    Hi Ethy :)

 * Ethy H. Brito <ethy.brito@inexo.com.br> dixit:
> > > 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.
> 
> My point in considering it a number is explained by:
> 
>    printf("%hx", -80); 

    OK, I just didn't think about that, sorry :)

> So, if you intend to creat a mask for 256 bytes size, you printf it as -256.

    Only if your C implementation treats negative numbers in 2's
complement ;) Of course, I don't know of any C implementation where
integers don't use 2's complement for negative numbers, anyway...

    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

      parent reply	other threads:[~2005-12-19 17:28 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
2005-12-19 16:49 ` Ethy H. Brito
2005-12-19 17:28 ` DervishD [this message]

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=20051219172825.GC19196@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.