From owner-freebsd-net@FreeBSD.ORG Wed May 21 22:41:44 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1AAF21065675 for ; Wed, 21 May 2008 22:41:44 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.183]) by mx1.freebsd.org (Postfix) with ESMTP id A90768FC20 for ; Wed, 21 May 2008 22:41:43 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-066-024-001.pools.arcor-ip.net [88.66.24.1]) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis) id 0MKwpI-1Jyx0A27R9-0007yl; Thu, 22 May 2008 00:41:42 +0200 Received: (qmail 49354 invoked from network); 21 May 2008 22:39:59 -0000 Received: from myhost.laiers.local (192.168.4.151) by mx.laiers.local with SMTP; 21 May 2008 22:39:59 -0000 From: Max Laier Organization: FreeBSD To: "Niki Denev" Date: Thu, 22 May 2008 00:41:24 +0200 User-Agent: KMail/1.9.9 References: <2e77fc10805211031n6c42ffd2u3dee28164094b83b@mail.gmail.com> <200805212332.13993.max@love2party.net> <2e77fc10805211514q59dd0eadkac2edce50d6c22f7@mail.gmail.com> In-Reply-To: <2e77fc10805211514q59dd0eadkac2edce50d6c22f7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805220041.24096.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1/1Bi+296IA4gLQ3uzhCOCbnwpj5w7b7QlL8kZ TQy4fEbgdue/lgXoz+I4DPbSMKYdgn+0gEpkKVrwJq7rdobGWp 6XfJ4DcFtQKzA9eZ/rAIA== Cc: freebsd-net@freebsd.org Subject: Re: lagg0.2 style vlans on lagg(4) interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 May 2008 22:41:44 -0000 On Thursday 22 May 2008 00:14:37 Niki Denev wrote: > On Thu, May 22, 2008 at 12:32 AM, Max Laier wrote: > > On Wednesday 21 May 2008 23:22:52 Niki Denev wrote: > >> On Thu, May 22, 2008 at 12:05 AM, Max Laier wrote: > >> > Looks good, though I'd probably move up the _INVOKE to before the > >> > ARPs are sent out. Probably between twiddling the hardware and > >> > sending ARPs (though that needs an else-case if the interface is > > > > ^------------------------------------------------- > > > >> > still down). In fact the ARPs could be sent from an event hook, > >> > too. > > > > ---------^ > > > >> > This would get rid of INET specific code in the LL-interface > >> > code. > >> > >> I thought about moving it up too, but in this case isn't it going to > >> be called only if the interface is up (IFF_UP)? > > > > See above. > > Oh, I've missed that. > > So, generating ARPs from an event handler looks to like the best > solution. But in that case what would be the correct place for it? > if_ethersubr.c and the others (fw,fddi,arc...) that may use ARP? I think if_ether.c would be good, where arp_ifinit() is. -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News