ovs-lldp: Use better types for ISID and VLANs.
authorBen Pfaff <blp@nicira.com>
Tue, 3 Mar 2015 23:36:28 +0000 (15:36 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 4 Mar 2015 00:22:12 +0000 (16:22 -0800)
commit72c642e5ab553fd11eb69208b3949065f689f17d
tree8c9c0778cc39d2bc45e6976ad138a11b18357bfb
parent135706b39307f84fb0c9a5d1ffeebb9f7f556b9e
ovs-lldp: Use better types for ISID and VLANs.

An ISID is 24 bits, so it fits in a uint32_t.  A VLAN is 12 bits, so it
fits in a uint16_t.  Use these types consistently, instead of int64_t.

This removes a check in aa_mapping_unregister() that seems a little
mysterious to me: it previously checked for ISID and VLAN values >= 0.  I
don't see a way that they could be < 0 in this situation though.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ovs-lldp.c
lib/ovs-lldp.h
vswitchd/bridge.c