From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25546 invoked by alias); 30 Jan 2003 15:06:31 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 25539 invoked from network); 30 Jan 2003 15:06:31 -0000 Received: from unknown (HELO sj-msg-core-2.cisco.com) (171.70.145.30) by 172.16.49.205 with SMTP; 30 Jan 2003 15:06:31 -0000 Received: from pilgrim.cisco.com (pilgrim.cisco.com [161.44.168.94]) by sj-msg-core-2.cisco.com (8.12.2/8.12.6) with ESMTP id h0UF6Nsv003074 for ; Thu, 30 Jan 2003 07:06:23 -0800 (PST) Received: from bguckelw2k01 (bguckel-frame1.cisco.com [10.84.13.34]) by pilgrim.cisco.com (8.8.8-Cisco List Logging/8.8.8) with SMTP id KAA16514 for ; Thu, 30 Jan 2003 10:01:04 -0500 (EST) From: "bill guckel" To: Date: Thu, 30 Jan 2003 15:09:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Subject: [ECOS] question about bridging code. X-SW-Source: 2003-01/txt/msg00423.txt.bz2 Hello, I'm hoping someone can answer a question about the function bridge_input() in net/tcpip/current/src/sys/net/if_bridge.c. Specifically: /* * Unicast, make sure it's not for us. */ for (ifl = LIST_FIRST(&sc->sc_iflist);ifl; ifl = LIST_NEXT(ifl,next)) { if (ifl->ifp->if_type != IFT_ETHER) continue; ac = (struct arpcom *)ifl->ifp; if (bcmp(ac->ac_enaddr, eh->ether_dhost, ETHER_ADDR_LEN) == 0) { if (ifl->bif_flags & IFBIF_LEARNING) bridge_rtupdate(sc, (struct ether_addr *)&eh->ether_dhost, ifp, 0, IFBAF_DYNAMIC); m->m_pkthdr.rcvif = ifl->ifp; return (m); } My question concerns the the passing of 'ether_dhost' to 'bridge_rtupdate()'. Why not 'ether_shost' ? This would seem to me (not a bridging expert) be a more important address to learn. Note that I may be using old code since it's been a while since I took new source. thanks, bill guckel -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss