interface renaming of an running interface

From: Harti Brandt (harti_at_cs.tu-berlin.de)
Date: 04/07/04

  • Next message: Robert Watson: "Re: interface renaming of an running interface"
    Date: Wed, 7 Apr 2004 11:38:45 +0200 (CEST)
    To: arch@freebsd.org
    
    

    Hi all,

    I'm currently trying to teach bsnmp to correctly handle interface
    renaming. One problem that I encounter is that a process listening on
    the routing socket sees an interface departure and an interface arrival
    message. This cause interfaces that run stateful protocols like SNMP on
    ATM interfaces to drop all connections which isn't really all that nice.
    The SNMP daemon would also loose all interface state and would report
    the renamed interface as a new interface with a new ifindex. This directly
    violates the IF-MIB RFC, because the daemon is required to understand that
    this is the same interface (the ifindex doesn't really help here, because
    unloading/loading the driver gives the same behaviour). I would like to do
    one of the following two things:

    1) disallow renaming an interface while it is up, or
    2) instead of emiting a departure/arrival pair of routing messages,
    generate a rename message.

    Additionally I would like to create new sysctls:

    net.link.generic.ifdata.<ifindex>.dname
    net.link.generic.ifdata.<ifindex>.dunit

    to access the driver's name of an interface.

    Comments?

    harti

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


  • Next message: Robert Watson: "Re: interface renaming of an running interface"

    Relevant Pages

    • Re: The reason to move to OpenSolaris
      ... > Renaming an interface really breaks backwards compatiblity! ... > isn't gphoto2's fault at all, but rather a faulty kernel development ... > What was the point of renaming usbdevfs to usbfs, ... You don't have the slightest idea why the kernel interface changed ...
      (comp.os.linux.misc)
    • Re: The reason to move to OpenSolaris
      ... > Renaming an interface really breaks backwards compatiblity! ... > isn't gphoto2's fault at all, but rather a faulty kernel development ... > What was the point of renaming usbdevfs to usbfs, ... You don't have the slightest idea why the kernel interface changed ...
      (comp.unix.solaris)
    • Re: interface renaming of an running interface
      ... >> the routing socket sees an interface departure and an interface arrival ... > exists even without generic interface renaming because some interfaces ... I don't know how to deal with devctl, but for the routing socket I'd ... so by tracking these message the daemon will understand what happens. ...
      (freebsd-arch)
    • Re: interface renaming of an running interface
      ... > the routing socket sees an interface departure and an interface arrival ... exists even without generic interface renaming because some interfaces ... I agree that what we need is a rename event -- the only real question is ...
      (freebsd-arch)
    • Re: interface renaming of an running interface
      ... > the routing socket sees an interface departure and an interface arrival ... > 1) disallow renaming an interface while it is up, ... > generate a rename message. ...
      (freebsd-arch)