From: "Ethy H. Brito" Date: Mon, 19 Dec 2005 16:49:09 +0000 Subject: Re: [LARTC] match'ing packets by size Message-Id: <20051219144909.5fc99add@pulsar.inexo.com.br> List-Id: References: <20051219104355.6034e25c@pulsar.inexo.com.br> In-Reply-To: <20051219104355.6034e25c@pulsar.inexo.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Mon, 19 Dec 2005 16:21:36 +0100 DervishD wrote: > Hi Ethy :) Hi Dervish. > > 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); this will print 0xffb0 which is the mask in question! So, if you intend to creat a mask for 256 bytes size, you printf it as -256. Regards Ethy _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc