public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] question about bridging code.
@ 2003-01-30 15:09 bill guckel
  2003-01-30 15:22 ` [ECOS] " Daniel Néri
  0 siblings, 1 reply; 3+ messages in thread
From: bill guckel @ 2003-01-30 15:09 UTC (permalink / raw)
  To: ecos-discuss

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-30 15:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-30 15:09 [ECOS] question about bridging code bill guckel
2003-01-30 15:22 ` [ECOS] " Daniel Néri
2003-01-30 15:48   ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).