git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovs-xapi-sync: Add unit test.
[sliver-openvswitch.git]
/
lib
/
autopath.c
diff --git
a/lib/autopath.c
b/lib/autopath.c
index
b42826c
..
9a39c6a
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);