On Thu, Mar 20, 2008 at 09:12:44AM +0100, Claudio Jeker wrote:
> reused. I don't care about SNMP but I wanted to warn you about that.
> 

hey... :( but anyway, it shouldn't really matter when the if_index
stays consistent as long as the interface exists.  it is a dynamic
interface, so i could live with reusing old if_indexs here.  and the
physical interfaces will keep one index during runtime.

> -- 
> :wq Claudio
> 
> Index: if.c
> ===================================================================
> RCS file: /cvs/src/sys/net/if.c,v
> retrieving revision 1.168
> diff -u -p -r1.168 if.c
> --- if.c      5 Jan 2008 19:08:19 -0000       1.168
> +++ if.c      18 Jan 2008 22:08:33 -0000
> @@ -601,6 +601,7 @@ do { \
>       /* Announce that the interface is gone. */
>       rt_ifannouncemsg(ifp, IFAN_DEPARTURE);
>  
> +     ifindex2ifnet[ifp->if_index] = NULL;
>       splx(s);
>  }

Reply via email to