From owner-freebsd-arch Sat Dec 12 11:52:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA21663 for freebsd-arch-outgoing; Sat, 12 Dec 1998 11:52:01 -0800 (PST) (envelope-from owner-freebsd-arch@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA21636 for ; Sat, 12 Dec 1998 11:51:58 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.1a/8.9.1) with ESMTP id UAA23359 for ; Sat, 12 Dec 1998 20:51:52 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id UAA25155 for freebsd-arch@freebsd.org; Sat, 12 Dec 1998 20:51:51 +0100 (MET) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA21033 for ; Sat, 12 Dec 1998 11:44:34 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.1/8.8.5) with ESMTP id UAA08242 for ; Sat, 12 Dec 1998 20:44:00 +0100 (CET) To: arch@FreeBSD.ORG Subject: IFF_UP, IFF_RUNNING semantics... From: Poul-Henning Kamp Date: Sat, 12 Dec 1998 20:43:59 +0100 Message-ID: <8240.913491839@critter.freebsd.dk> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm trying to unravel how IFF_UP and IFF_RUNNING is supposed to work. I would expect one of them (IFF_RUNNING ?) to mean "should be running" as in "root configured this one to be running" and the other (IFF_UP ?) to mean "is running" as in "hardware/protocols are ready to pass packets". In this model, IFF_UP would control the routes. Either by yanking the route when IFF_UP disappears, or by not selecting routes where the interface doesn't have IFF_UP set. Looking over the sources, it is obvious that very few people if any have any idea about the semantics about IFF_UP and IFF_RUNNING either. For an example why this is important imagine an UTP ethernet which doesn't receive a heartbeat. In that case the hardware knows the interface is down and the route should be disabled so the packets could attempt to flow another way. Words of wisdom on the subject kindly solicited. -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." "ttyv0" -- What UNIX calls a $20K state-of-the-art, 3D, hi-res color terminal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message