projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lacp: Sort slaves in appctl output.
[openvswitch]
/
lib
/
autopath.c
diff --git
a/lib/autopath.c
b/lib/autopath.c
index b42826c14eb37e00d60c3101c96c8db0c1e527b4..9a39c6a1f62317a11dcc208fc8448529a262b27b 100644
(file)
--- a/
lib/autopath.c
+++ b/
lib/autopath.c
@@
-67,11
+67,7
@@
autopath_parse(struct nx_action_autopath *ap, const char *s_)
"less than required 65536", s_, n_bits, 1u << n_bits);
}
"less than required 65536", s_, n_bits, 1u << n_bits);
}
- memset(ap, 0, sizeof *ap);
- ap->type = htons(OFPAT_VENDOR);
- ap->len = htons(sizeof *ap);
- ap->vendor = htonl(NX_VENDOR_ID);
- ap->subtype = htons(NXAST_AUTOPATH);
+ ofputil_init_NXAST_AUTOPATH(ap);
ap->id = htonl(id_int);
ap->ofs_nbits = nxm_encode_ofs_nbits(ofs, n_bits);
ap->dst = htonl(reg);
ap->id = htonl(id_int);
ap->ofs_nbits = nxm_encode_ofs_nbits(ofs, n_bits);
ap->dst = htonl(reg);