Pierre Beyssac wrote: > Wouldn't it be sensible to issue a warning (or panic) when > increasing the reference count reaches 0, rather than causing a > later kernel segfault? It would involve some overhead though, and > I'm not sure having 2^32 routes is currently realistic since most > machines don't even have that many bytes of RAM, but it might be > true one day...
It would be pretty hard to create 2^32 routes, given that IPv4 only has 32-bit addresses. :-) Also, if you time it I suspect you'll find that it would take a geological lifetime on a fast machine to add that many routes. I think it makes more sense to increase the size of the reference count as discussed, rather than adding checks that add more complexity and overhead. 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