Subject: Re: ifa_refcnt can overflow ...
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Zdenek Salvet <salvet@ics.muni.cz>
List: tech-net
Date: 03/30/1999 15:52:44
> 
> Hi,
> I just came across the FreeBSD PR 10570, and it looks like we have the same
> problem:
> in sys/net/if.h, ifa_refcnt is a short. On a box used as a router with gated,
> you can end up with more than 65535 routes on it (common for an ISP's
> router). If, when deleting a route, ifa_refcnt falls back to 0 and ifa is
> free'd while there where still 2^16 routes using it.
> The FreeBSD PR suggests making ifa_refcnt an int.
> Coments ?
> 
> PS: 2^16 routes are actually not an impossible situation. One time I
> accidentally ended up on a config where gated accepted the routing table of
> our ISP. I don't know how many entries there was in it but there was a lot :)

I would like to see 64 bit if_data.ifi_ibytes and if_data.ifi_obytes too,
they overflow too quickly on my machine.

-- 
Zdenek Salvet                                              salvet@ics.muni.cz 
Ustav vypocetni techniky Masarykovy univerzity, Brno
tel.: ++420-5-41 512 257                           Fax: ++420-5-41 212 747
----------------------------------------------------------------------------
           If God had meant for us to be in the Army,
         we would have been born with green, baggy skin.