loxi-prep: default xid to None
diff --git a/tools/munger/scripts/error_gen.py b/tools/munger/scripts/error_gen.py
index c8f4bf2..512a567 100644
--- a/tools/munger/scripts/error_gen.py
+++ b/tools/munger/scripts/error_gen.py
@@ -39,6 +39,7 @@
         ofp_error_msg.__init__(self)
         self.version = OFP_VERSION
         self.type = OFPT_ERROR
+        self.xid = None
         self.err_type = --ERROR_NAME--
         self.data = ""
 
diff --git a/tools/munger/scripts/message_gen.py b/tools/munger/scripts/message_gen.py
index a9531dd..5b6e27b 100644
--- a/tools/munger/scripts/message_gen.py
+++ b/tools/munger/scripts/message_gen.py
@@ -297,6 +297,7 @@
         _p2(parent + ".__init__(self)")
     _p2("self.version = OFP_VERSION")
     _p2("self.type = " + msg_name)
+    _p2("self.xid = None")
     if has_list:
         _p2('self.' + list_var + ' = []')
     if has_string:
@@ -534,6 +535,7 @@
         ofp_--TYPE--_stats_request.__init__(self)
         self.version = OFP_VERSION
         self.type = OFPT_STATS_REQUEST
+        self.xid = None
         self.stats_type = --STATS_NAME--
         for (k, v) in kwargs.items():
             if hasattr(self, k):
@@ -593,6 +595,7 @@
         ofp_stats_reply.__init__(self)
         self.version = OFP_VERSION
         self.type = OFPT_STATS_REPLY
+        self.xid = None
         self.stats_type = --STATS_NAME--
         # stats: Array of type --TYPE--_stats_entry
         self.entries = []