]> 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)
commit64121b870b627ec0a310b1e578706ecefa79d3f1
tree80497628b988f99fad1f22a9d240778a473622eb
parent227d2221e51ef98f9fd945e7fc6daf7011fe90e9
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