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)
commit73cf3317065a6bc1536b4fb6f51bff4d3138f8ac
treeac3f0096ee65cd819f275ab842154bdcfb026a8c
parent23c578bf7d532552298c84d4872e4ab85ed82840
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