shill: Refactor message types into UserBoundNlMessage

Since all UserBoundNlMessage subclasses have a particular message type
and type string, pull that functionality into the abstract super class.

BUG=None
TEST=Unit tests

Change-Id: Ib44db2acabab33c48de2ef1143de6be3e1df0acf
Reviewed-on: https://gerrit.chromium.org/gerrit/37731
Tested-by: Christopher Wiley <wiley@chromium.org>
Reviewed-by: Wade Guthrie <wdg@chromium.org>
Commit-Ready: Christopher Wiley <wiley@chromium.org>
diff --git a/user_bound_nlmessage.cc b/user_bound_nlmessage.cc
index 62eb59c..a698cd5 100644
--- a/user_bound_nlmessage.cc
+++ b/user_bound_nlmessage.cc
@@ -63,8 +63,6 @@
     LAZY_INSTANCE_INITIALIZER;
 }  // namespace
 
-const uint8_t UserBoundNlMessage::kCommand = 0xff;
-const char UserBoundNlMessage::kCommandString[] = "<Unknown Message>";
 const char UserBoundNlMessage::kBogusMacAddress[]="XX:XX:XX:XX:XX:XX";
 
 const uint8_t Nl80211Frame::kMinimumFrameByteCount = 26;
@@ -1968,13 +1966,13 @@
   bool doit = false;
 
   map<uint8_t, bool>::const_iterator node;
-  node = need_to_print.find(message.GetMessageType());
+  node = need_to_print.find(message.message_type());
   if (node != need_to_print.end())
     doit = node->second;
 
   if (doit) {
     LOG(INFO) << "@@const unsigned char "
-               << "k" << message.GetMessageTypeString()
+               << "k" << message.message_type_string()
                << "[] = {";
 
     int payload_bytes = nlmsg_datalen(msg);
@@ -1987,7 +1985,7 @@
                  << + rawdata[i] << ",";
     }
     LOG(INFO) << "};";
-    need_to_print[message.GetMessageType()] = false;
+    need_to_print[message.message_type()] = false;
   }
 }