From owner-freebsd-arch@FreeBSD.ORG Wed Apr 7 02:41:39 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C2CC116A4CE for ; Wed, 7 Apr 2004 02:41:39 -0700 (PDT) Received: from mail.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6AA343D54 for ; Wed, 7 Apr 2004 02:41:38 -0700 (PDT) (envelope-from harti@cs.tu-berlin.de) Received: from 130-149-145-115.dialup.cs.tu-berlin.de (130-149-145-115.dialup.cs.tu-berlin.de [130.149.145.115]) by mail.cs.tu-berlin.de (8.9.3p2/8.9.3) with ESMTP id LAA23789 for ; Wed, 7 Apr 2004 11:38:28 +0200 (MET DST) Date: Wed, 7 Apr 2004 11:38:45 +0200 (CEST) From: Harti Brandt X-X-Sender: harti@130-149-145-115.dialup.cs.tu-berlin.de To: arch@freebsd.org Message-ID: <20040407111613.W759@130-149-145-115.dialup.cs.tu-berlin.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: interface renaming of an running interface X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: harti@freebsd.org List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2004 09:41:39 -0000 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..dname net.link.generic.ifdata..dunit to access the driver's name of an interface. Comments? harti