Re: what is the story on if_index allocation ?

From: Luigi Rizzo (rizzo_at_icir.org)
Date: 04/21/04

  • Next message: Petri Helenius: "Re: what is the story on if_index allocation ?"
    Date: Tue, 20 Apr 2004 23:38:18 -0700
    To: Petri Helenius <pete@he.iki.fi>
    
    

    On Wed, Apr 21, 2004 at 09:25:59AM +0300, Petri Helenius wrote:
    > Luigi Rizzo wrote:
    >
    > >Can someone explain what is the goal ? Reuse a number if an
    > >interface has the same name of a previously existing one and
    > >the index is free ? And does it make sense, anyways, or
    > >we could just simplify that code and just reuse the first
    > >available entry in ifindex_table[] ?
    > >
    > >
    > The optimal course of action (from management software point of view) is
    > to retain as static ifName to ifIndex mapping. If the index changes for

    I do not think the current code supports this, as any free
    index at the top of the array is reused. So if you had 'vlan12' there
    and it went away, the next interface that comes in will grab that
    index and vlan12 will get a new one. On top of this you can rename
    interfaces without changing the index, you can change MAC and IP
    addresses, in the already mentioned case of a tunnel server
    there is basically no relation between successive creations on
    the same interface.

    My feeling is that there is not even a sensible way to specify
    how one would like to retain the mapping of indexes, let alone
    the fact that the specification changes depending on whom you
    ask. When this happens, it is a good hint to move the issue
    outside the kernel.

    cheers
    luigi
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Petri Helenius: "Re: what is the story on if_index allocation ?"

    Relevant Pages

    • Re: what is the story on if_index allocation ?
      ... Luigi Rizzo wrote: ... to retain as static ifName to ifIndex mapping. ... the same interface, you're supposed to have lower sysUpTime than on ...
      (freebsd-net)
    • Re: what is the story on if_index allocation ?
      ... On Wednesday 21 April 2004 08:58, Luigi Rizzo wrote: ... Any firm definition in this document would likely turn out to ... relation to any once existed but deleted in past interface and let the ... management station define what does it mean to be 'the same' interface. ...
      (freebsd-net)
    • Re: [patch] Verify that ifaddr_byindex(foo) != NULL
      ... At 14:35 04/05/2004, Luigi Rizzo wrote: ... >> still exists (rather than a gap left behind when an interface was ... I wasn't sure if we did trust it. ... about packets received immediately before an interface is removed. ...
      (freebsd-net)