Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #258630

Re: netmask question

From Dan Purgert <dan@djph.net>
Newsgroups linux.debian.user
Subject Re: netmask question
Date 2023-05-23 03:20 +0200
Message-ID <GyoQV-aMrM-5@gated-at.bofh.it> (permalink)
References (1 earlier) <Gy5Oh-aAZD-1@gated-at.bofh.it> <Gy8j7-aCxQ-1@gated-at.bofh.it> <Gygql-aHpq-1@gated-at.bofh.it> <Gyj4R-aJ3P-7@gated-at.bofh.it> <GynrP-aLuC-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On May 22, 2023, gene heskett wrote:
> 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.

In "natural counting", 2^8 is 256.  (1, 2, 3, 4, ... , 256).

However, you're correct in that the 256 possible values for an 8-bit
number in computing are 0-255. (i.e. 0 to (2^8)-1)

-- 
|_|O|_|
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1  E067 6D65 70E5 4CE7 2860

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

netmask question coreyh@free.fr - 2023-05-22 04:50 +0200
  Re: netmask question Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2023-05-22 05:00 +0200
    Re: netmask question Tim Woodall <debianuser@woodall.me.uk> - 2023-05-22 09:50 +0200
      Re: netmask question <tomas@tuxteam.de> - 2023-05-22 10:10 +0200
      Re: netmask question coreyh@free.fr - 2023-05-22 11:00 +0200
        Re: netmask question Tim Woodall <debianuser@woodall.me.uk> - 2023-05-22 11:10 +0200
          Re: netmask question coreyh@free.fr - 2023-05-22 12:20 +0200
            Re: netmask question Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2023-05-22 12:30 +0200
            Re: netmask question Dan Ritter <dsr@randomstring.org> - 2023-05-22 13:10 +0200
      Re: netmask question Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2023-05-22 12:20 +0200
        Re: netmask question Tim Woodall <debianuser@woodall.me.uk> - 2023-05-22 12:30 +0200
        Re: netmask question <tomas@tuxteam.de> - 2023-05-22 13:10 +0200
  Re: netmask question Charles Curley <charlescurley@charlescurley.com> - 2023-05-22 05:10 +0200
  Re: netmask question <tomas@tuxteam.de> - 2023-05-22 07:00 +0200
    Re: netmask question Tim Woodall <debianuser@woodall.me.uk> - 2023-05-22 09:40 +0200
      Re: netmask question <tomas@tuxteam.de> - 2023-05-22 10:00 +0200
      Re: netmask question Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2023-05-22 12:20 +0200
      Re: netmask question gene heskett <gheskett@shentel.net> - 2023-05-22 18:20 +0200
        Re: netmask question <tomas@tuxteam.de> - 2023-05-22 21:10 +0200
          Re: netmask question gene heskett <gheskett@shentel.net> - 2023-05-23 01:50 +0200
            Re: netmask question Dan Purgert <dan@djph.net> - 2023-05-23 03:20 +0200
              Re: netmask question debian-user@howorth.org.uk - 2023-05-23 12:50 +0200
                Re: netmask question Dan Purgert <dan@djph.net> - 2023-05-23 14:20 +0200
            Re: netmask question tomas@tuxteam.de - 2023-05-23 07:00 +0200
          Re: netmask question "Tom Reed" <tom@dkinbox.com> - 2023-05-23 01:50 +0200
            Re: netmask question Greg Wooledge <greg@wooledge.org> - 2023-05-23 02:10 +0200
              Re: netmask question <tomas@tuxteam.de> - 2023-05-23 06:40 +0200
            Re: netmask question Dan Ritter <dsr@randomstring.org> - 2023-05-23 02:30 +0200
              Re: netmask question "Tom Reed" <tom@dkinbox.com> - 2023-05-23 02:30 +0200
                Re: netmask question Dan Ritter <dsr@randomstring.org> - 2023-05-23 02:50 +0200
                Re: netmask question <tomas@tuxteam.de> - 2023-05-23 06:50 +0200
                Re: netmask question Andy Smith <andy@strugglers.net> - 2023-05-27 03:10 +0200
                Re: netmask question Greg Wooledge <greg@wooledge.org> - 2023-05-27 03:10 +0200
                Re: netmask question Andy Smith <andy@strugglers.net> - 2023-05-27 03:20 +0200
                Re: netmask question Greg Wooledge <greg@wooledge.org> - 2023-05-23 02:50 +0200
                Re: netmask question "Tom Reed" <tom@dkinbox.com> - 2023-05-23 03:00 +0200
                Re: netmask question Dan Ritter <dsr@randomstring.org> - 2023-05-23 03:20 +0200
                Re: netmask question Tim Woodall <debianuser@woodall.me.uk> - 2023-05-23 08:30 +0200
                Re: netmask question Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2023-05-23 02:50 +0200

csiph-web