Dmitry Khrustalev wrote:

>> It is completely impossible to have 2^32 routes in IPv4.  Period.
> 
>   Of course not. It is impossible to have 2^32 *host* routes in IPv4.

Independent of IPv4, IPv6, or IPvAnything, I make the following
claim.  Let:

    P = number of bits in a pointer
    I = number of bits in the integer type used for a reference counter
    U = size of addressable unit in bits (8 on most machines).

If:

    U <= P <= I

then there is no way in theory or in practice to overflow the
reference count.  The proof is left as an exercise for the reader.
Hint: where will you store that many pointers, and how will you
address them?

And please don't raise the red herring of code bugs in maintaining
the reference counts, because that has never been what this thread
is about.

John
---
  John Polstra                                               j...@polstra.com
  John D. Polstra & Co., Inc.                        Seattle, Washington USA
  "Self-interest is the aphrodisiac of belief."           -- James V. DeLong



To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to