Missed setting length for stats messages
diff --git a/tools/munger/scripts/message_gen.py b/tools/munger/scripts/message_gen.py
index 5dd6c0a..a839e77 100644
--- a/tools/munger/scripts/message_gen.py
+++ b/tools/munger/scripts/message_gen.py
@@ -528,6 +528,7 @@
self.type = --STATS_NAME--
def pack(self, assertstruct=True):
+ self.header.length = len(self)
packed = self.header.pack()
packed += ofp_stats_request.pack(self)
packed += ofp_--TYPE--_stats_request.pack(self)
@@ -585,6 +586,7 @@
self.stats = []
def pack(self, assertstruct=True):
+ self.header.length = len(self)
packed = self.header.pack()
packed += ofp_stats_reply.pack(self)
for obj in self.stats: