Permalink
Browse files

ensure all padding fields are set to value 0 (#113)

  • Loading branch information...
akoepsel committed Jul 4, 2018
1 parent 21ad547 commit 2a26fc877277f36019c9a37a6ea045cd347ad7cc
Showing with 3 additions and 0 deletions.
  1. +1 −0 CHANGES
  2. +2 −0 src/rofl/common/openflow/messages/cofmsg.cc
View
@@ -13,6 +13,7 @@ v0.13.1
[+] added experimental matches from OFDPA-2:
VRF, OVID, ALLOW_VLAN_TRANSLATION, ACTSET_OUTPUT
[B] fixed invalid length fields for experimental OXM matches
[B] ensure all padding fields are set to value 0
v0.13.0
[+] thread pool
@@ -19,6 +19,8 @@ void cofmsg::pack(uint8_t *buf, size_t buflen) {
if (buflen < cofmsg::length())
throw eInvalid("eInvalid", __FILE__, __FUNCTION__, __LINE__);
memset(buf, 0, buflen); // ensure padding fields to be set to 0
struct rofl::openflow::ofp_header *hdr =
(struct rofl::openflow::ofp_header *)buf;

0 comments on commit 2a26fc8

Please sign in to comment.