From owner-cvs-all@FreeBSD.ORG Wed Oct 26 09:15:24 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F3D916A41F; Wed, 26 Oct 2005 09:15:24 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id D450043D60; Wed, 26 Oct 2005 09:15:10 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 12EBB46B93; Wed, 26 Oct 2005 05:15:10 -0400 (EDT) Date: Wed, 26 Oct 2005 10:15:09 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Yar Tikhiy In-Reply-To: <200510260557.j9Q5vZ7J076711@repoman.freebsd.org> Message-ID: <20051026101319.A32255@fledge.watson.org> References: <200510260557.j9Q5vZ7J076711@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/netinet ip_carp.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2005 09:15:24 -0000 On Wed, 26 Oct 2005, Yar Tikhiy wrote: > Since carp(4) interfaces presently are kinda fake yet possess > IP addresses, mark them with LOOPBACK so that routing daemons > take them easy for link-state routing protocols. > > Reviewed by: glebius Be aware that several network protocols, including IPv4 and IPv6, have special-case handling for interfaces tagged as IFF_LOOPBACK. I don't know whether this is a problem or not, but it's something you might want to investigate. I've previously run into problems with if_disc because it's marked as IFF_LOOPBACK and IPv6 has tried to use it for things that are not appropriate with if_disc -- unfortunately, I don't remember the details. I think we may actually be in need of either a new flag, IFF_OKSODONTTREATTHISQUITELIKEANINTERFACE, or maybe a more reliable way for protocols to ask if an interface is a loopback interface or not. Robert N M Watson