2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

flow: htons() zero initializers to make their size more clear.

This commit is contained in:
Justin Pettit
2011-11-09 23:54:33 -08:00
parent 2486e66ab5
commit cb9457e201

View File

@@ -452,13 +452,13 @@ flow_zero_wildcards(struct flow *flow, const struct flow_wildcards *wildcards)
}
flow->vlan_tci &= wildcards->vlan_tci_mask;
if (wc & FWW_DL_TYPE) {
flow->dl_type = 0;
flow->dl_type = htons(0);
}
if (wc & FWW_TP_SRC) {
flow->tp_src = 0;
flow->tp_src = htons(0);
}
if (wc & FWW_TP_DST) {
flow->tp_dst = 0;
flow->tp_dst = htons(0);
}
if (wc & FWW_DL_SRC) {
memset(flow->dl_src, 0, sizeof flow->dl_src);