[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20150917.212000.1163539662854684723.davem@davemloft.net>
Date: Thu, 17 Sep 2015 21:20:00 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: wen.gang.wang@...cle.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] ip: find correct route for socket which is not bound
to a device
From: Wengang Wang <wen.gang.wang@...cle.com>
Date: Wed, 16 Sep 2015 14:34:15 +0800
> For multi-cast, we should find valid route(thus get the meaniful pmtu) for
> the package on the socket which is not bound to a device(sk_bound_dev_if
> being 0) too.
Your patch breaks exactly the situation explained in full detail
in the huge comment about the first change you are making:
/* Special hack: user can direct multicasts
and limited broadcast via necessary interface
without fiddling with IP_MULTICAST_IF or IP_PKTINFO.
This hack is not just for fun, it allows
vic,vat and friends to work.
They bind socket to loopback, set ttl to zero
and expect that it will work.
From the viewpoint of routing cache they are broken,
because we are not allowed to build multicast path
with loopback source addr (look, routing cache
cannot know, that ttl is zero, so that packet
will not leave this host and route is valid).
Luckily, this hack is good workaround.
*/
That situation will now fail after your patch.
So I cannot apply this patch, sorry.
I know what you want, you want to end up with a cached route that
will track the PMTU. But this hack will break other things at
the same time so is not acceptable.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists