From owner-freebsd-hackers Sat Apr 20 14:30:50 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id OAA03699 for hackers-outgoing; Sat, 20 Apr 1996 14:30:50 -0700 (PDT) Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id OAA03692 Sat, 20 Apr 1996 14:30:46 -0700 (PDT) Received: by halloran-eldar.lcs.mit.edu; (5.65/1.1.8.2/19Aug95-0530PM) id AA19649; Sat, 20 Apr 1996 17:30:20 -0400 Date: Sat, 20 Apr 1996 17:30:20 -0400 From: Garrett Wollman Message-Id: <9604202130.AA19649@halloran-eldar.lcs.mit.edu> To: John Hay Cc: hackers@FreeBSD.ORG (FreeBSD-hackers), wollman@FreeBSD.ORG Subject: IPX Netbios packets. In-Reply-To: <199604201938.VAA12538@zibbi.mikom.csir.co.za> References: <199604201938.VAA12538@zibbi.mikom.csir.co.za> Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk < said: > So I am looking for a nice generic way to be able to disable it per device. > I thought of flags with ifconfig, but I don't like that idea too much. > Another way might be with the sysctl interface, but I'm not sure how to > do it for different interface without having to add code to every network > interface in the kernel. An interface flag is almost certainly the right way to go. What you need to do is to fix all the interface drivers to not abuse IFF_LINK* for medium selection (there is already another field in the struct for that purpose), and then use one of the newly-freed flags. Or, if there is some sort of ``address'' associated with this service, you might define a special sort of address which, when configured on the interface, causes the special behavior to happen. -GAWollman -- Garrett A. Wollman | Shashish is simple, it's discreet, it's brief. ... wollman@lcs.mit.edu | Shashish is the bonding of hearts in spite of distance. Opinions not those of| It is a bond more powerful than absence. We like people MIT, LCS, ANA, or NSA| who like Shashish. - Claude McKenzie + Florent Vollant