]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: fix byte order issues with NDA_PORT
authorstephen hemminger <stephen@networkplumber.org>
Sat, 27 Apr 2013 11:31:54 +0000 (11:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Apr 2013 15:53:12 +0000 (11:53 -0400)
commite8f46f78f77affd1a59462733f5a43e9c9fdc163
treeac3f0096ee65cd819f275ab842154bdcfb026a8c
parent13c3f957668eebb17f7244d1a1a1ad79b69f4899
vxlan: fix byte order issues with NDA_PORT

The NDA_PORT attribute was added, but the author wasn't careful
about width (port is 16 bits), or byte order.  The attribute was
being dumped as 16 bits, but only 32 bit value would be accepted
when setting up a device. Also, the remote port is in network
byte order and was being compared with default port in host byte
order.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c