[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: netmask question



On 5/22/23 15:04, tomas@tuxteam.de wrote:
On Mon, May 22, 2023 at 12:16:09PM -0400, gene heskett wrote:
On 5/22/23 03:32, Tim Woodall wrote:
On Mon, 22 May 2023, tomas@tuxteam.de wrote:

   number; for (human) display it is subdivided into four 8 bit chunks
(called "octets" for obvious reasons), and those octets only can
go from 0 to 255 (since 2^8 == 255).

Nit, but 2^8 is 256.

.
The octets count from base 0 Tim.

That's right, but then they go 0 .. 2^8 - 1. 2^8 is still 256, Tim does
have a point there :-)

I don't see it, 255 is all 8 bits set, 256 is all 8 bits cleared and carry set.

Cheers

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>


Reply to: