From: Jarek Poplawski <jarkao2@gmail.com>
To: Ferenc Wagner <wferi@niif.hu>
Cc: netdev@vger.kernel.org
Subject: Re: IP-less bridge as a martian source
Date: Fri, 7 Nov 2008 10:19:46 +0000 [thread overview]
Message-ID: <20081107101946.GA4207@ff.dom.local> (raw)
In-Reply-To: <87r65px6wf.fsf@tac.ki.iif.hu>
On Thu, Nov 06, 2008 at 03:31:44PM +0100, Ferenc Wagner wrote:
> Jarek Poplawski <jarkao2@gmail.com> writes:
>
> > On Thu, Nov 06, 2008 at 01:00:05PM +0100, Ferenc Wagner wrote:
> >> Jarek Poplawski <jarkao2@gmail.com> writes:
> >>
> >>>> wferi@xen1:~$ sudo cat /proc/net/vlan/vlan891
> >>>> [...]
> >>>> EGRESSS priority Mappings:
> >>>
> >>> Should be corrected: maybe you will send a patch? (Otherwise let me now.)
> >>
> >> I sent one. Hope it's OK.
> >
> > Looks OK to me.
>
> Still I'm afraid it would break some users' scripts... ;)
Don't worry! (I don't use vlans...;)
>
> >> My question is: why does the IP-less bridge pick up any packets?
> >> Does the host-based addressing model require this, if the host has
> >> any IP address at all (on some other interface)?
> >
> > Do you mean why it's routed at all?
>
> Yes, probably that's what I mean. I expected such packages to stay in
> the link layer (http://ebtables.sourceforge.net/br_fw_ia/PacketFlow.png)
> Hmm. In my case the only possible way out is "Bridging Decision" in
> the input phase. That surely kicks in, as these packages are destined
> to ff:ff:ff:ff:ff:ff... Confirmed: after ebtables -A INPUT -j DROP
> those "martian source" warnings don't appear anymore.
>
> Btw what is that "Processing decision" right after Qdisc Deque(ue)? A
> check whether the destination MAC is ours? I also wonder where
> tcpdump attaches its probe on that picture...
This picture isn't probably exact enough. Have a look at net/core/dev.c
netif_receive_skb(). There are hooks for: netpoll(netconsole), bond,
taps (e.g. tcpdump), ingress qdisc, bridge, macvlan and protocols loop
(e.g. ip with routing, iptables etc.) These hooks can usually stop later
processing returning NULL. So, there are more processing decisions, and
maybe this one on the picture should be renamed to "Bridge Processing
Decission".
> But the directed broadcast pings (destined to the network broadcast
> address) also have full-one destination MAC, and they weren't
> logged... Even though the host didn't know about those networks
> either. So part of the mistery remains.
This is probably because of this special treatment of 255.255.255.255
(FFFFFFFF) in ip_route_input_slow(). Others could simply get
EHOSTUNREACH return only.
Regards,
Jarek P.
prev parent reply other threads:[~2008-11-07 10:19 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-21 12:06 IP-less bridge as a martian source Ferenc Wagner
2008-10-22 15:00 ` Ferenc Wagner
2008-10-22 17:22 ` Jarek Poplawski
2008-10-22 17:36 ` Jarek Poplawski
2008-10-22 19:10 ` Jarek Poplawski
2008-10-29 16:56 ` Ferenc Wagner
2008-10-31 8:41 ` Jarek Poplawski
2008-11-01 23:55 ` Ferenc Wagner
2008-11-05 9:43 ` Jarek Poplawski
2008-11-05 10:30 ` Ferenc Wagner
2008-11-05 11:26 ` Ferenc Wagner
2008-11-06 10:00 ` Jarek Poplawski
2008-11-06 12:00 ` Ferenc Wagner
2008-11-06 13:15 ` Jarek Poplawski
2008-11-06 14:31 ` Ferenc Wagner
2008-11-07 10:19 ` Jarek Poplawski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081107101946.GA4207@ff.dom.local \
--to=jarkao2@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=wferi@niif.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).