capwap: Bind address should be big endian.
authorJesse Gross <jesse@nicira.com>
Sat, 4 Dec 2010 21:49:50 +0000 (13:49 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 10 Dec 2010 01:43:36 +0000 (17:43 -0800)
commit56b20c59a3fbfe94dcbb94fa4abfc013630af541
tree6d11491cb0852b4cdc6a2b89f0ecadef5f302d84
parente7d737d175dfe53436b356445ecb154541d2afff
capwap: Bind address should be big endian.

CAPWAP creates a UDP socket that accepts packets from any address using
INADDR_ANY.  IP addresses should be in network byte order but that
constant is in host byte order, so use htonl.  However, this is not a
real bug since the value of INADDR_ANY is 0.

Found with sparse.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/vport-capwap.c