]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: interpret IP headers for ECN correctly
authorJiri Benc <jbenc@redhat.com>
Mon, 7 Dec 2015 15:29:08 +0000 (16:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Dec 2015 22:06:33 +0000 (17:06 -0500)
commitc1e324eb9e277afe23d0b0f47f4deb0fc7a9e476
tree80497628b988f99fad1f22a9d240778a473622eb
parent489ee2630384b8cc304af4275c287d77bf4ed4df
vxlan: interpret IP headers for ECN correctly

When looking for outer IP header, use the actual socket address family, not
the address family of the default destination which is not set for metadata
based interfaces (and doesn't have to match the address family of the
received packet even if it was set).

Fix also the misleading comment.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c