mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
Convert remaining network-byte-order "uint<N>_t"s into "ovs_be<N>"s.
I looked at almost every uint<N>_t in the tree to determine whether it was really in network byte order, and converted the ones that were. The only remaining ones, modulo my mistakes, are in openflow.h. I'm not sure whether we should convert those, because there might be some value in remaining close to upstream for this header.
This commit is contained in:
@@ -2115,10 +2115,9 @@ validate_actions(const union ofp_action *actions, size_t n_actions,
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Returns true if 'action' outputs to 'port' (which must be in network byte
|
||||
* order), false otherwise. */
|
||||
/* Returns true if 'action' outputs to 'port', false otherwise. */
|
||||
bool
|
||||
action_outputs_to_port(const union ofp_action *action, uint16_t port)
|
||||
action_outputs_to_port(const union ofp_action *action, ovs_be16 port)
|
||||
{
|
||||
switch (ntohs(action->type)) {
|
||||
case OFPAT_OUTPUT:
|
||||
|
Reference in New Issue
Block a user