From: Joerg Roedel <joro-lkml@zlug.org>
To: Patrick McHardy <kaber@trash.net>
Cc: netdev@vger.kernel.org
Subject: Re: [RFC PATCH] EtherIP tunnel driver (RFC 3387)
Date: Sun, 3 Sep 2006 21:10:42 +0200 [thread overview]
Message-ID: <20060903191042.GA6928@zlug.org> (raw)
In-Reply-To: <44F85ED8.2000907@trash.net>
On Fri, Sep 01, 2006 at 06:24:56PM +0200, Patrick McHardy wrote:
Hello Patrick,
Thank you very much for reviewing my driver. I will fix the issues you
mentioned. But I have some explanations and questions left.
> Joerg Roedel wrote:
> > + fl.oif = 0;
> > + fl.nl_u.ip4_u.daddr = tunnel->parms.iph.daddr;
> > + fl.nl_u.ip4_u.saddr = tunnel->parms.iph.saddr;
> > + fl.nl_u.ip4_u.saddr = 0;
> > + fl.proto = IPPROTO_ETHERIP;
>
> This leaves fields like nfmark or iif uninitialized.
I changed the code to initialize iif to 0, but I am not sure how to
initialize the fwmark field. Neigther the ipip driver nor the sit driver
initialize this field. Is it right to initialize it to 0?
> > + goto accept;
> > +
> > + if ((skb->pkt_type == PACKET_OTHERHOST) && (dev->flags & IFF_PROMISC))
> > + goto accept;
>
>
> Why would you want to receive packets for other hosts picked up in
> promiscous mode?
This is because the device should be usable in a bridge to build a
distributed layer 2 network. Furthermore, this could be usefull when I
extend the driver to support multicast destinations.
> > +static void etherip_err(struct sk_buff *skb, u32 info)
> > +{
>
>
> You could propagte errors from destination unreachable messages
> similar to what the IPIP driver does.
I am not sure that this makes sense here. The IPIP driver handles
ICMP_FRAG_NEEDED messages. But I think those messages will never be
received by the EtherIP driver because it never sets the DF flag in the
outgoing packets (to ensure the Ethernet MTU for protocols besides IP
and IPv6). I added a comment about this issue to the etherip_tunnel_xmit
function.
This were my questions and explanations. Thanks again for reviewing, I
will submit a new patch as soon as the questions have been discussed and
the changes are tested.
Greets,
Joerg Roedel
--
VGER BF report: U 0.5001
next prev parent reply other threads:[~2006-09-03 19:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-01 15:13 [RFC PATCH] EtherIP tunnel driver (RFC 3387) Joerg Roedel
2006-09-01 16:24 ` Patrick McHardy
2006-09-03 19:10 ` Joerg Roedel [this message]
2006-09-03 22:22 ` Patrick McHardy
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=20060903191042.GA6928@zlug.org \
--to=joro-lkml@zlug.org \
--cc=kaber@trash.net \
--cc=netdev@vger.kernel.org \
/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).