summaryrefslogtreecommitdiff
path: root/tests/check-structs.at
Commit message (Collapse)AuthorAgeFilesLines
* check-structs: Disallow uint<N>_t because ovs_be<N> should always be used.Ben Pfaff2012-04-021-6/+6
| | | | | | | | | | | | The header files that check-structs checks should only contain big-endian data, never native-endian data, so disallow uint<N>_t entirely. (We had a couple of mistakes in this area until recently.) uint8_t is an obvious exception. Reported-by: Simon Horman <horms@verge.net.au> Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
* check-structs: Add check that OFP_ASSERT is checking the right structures.Ben Pfaff2011-10-041-1/+16
| | | | | | | This avoids a fairly common issue in which a developer cuts and pastes a structure definition and forgets to update the structure name inside the OFP_ASSERT, so that the new structure's size doesn't really get checked at all.
* Add build checks for portable OpenFlow structure padding and alignment.Ben Pfaff2010-01-251-0/+41
This causes the build to fail with an error message if openflow.h contains a structure whose members are not aligned in a portable way.