secchan: Improve logging when rejecting a controller vconn.
authorBen Pfaff <blp@nicira.com>
Wed, 23 Jul 2008 20:07:40 +0000 (13:07 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 23 Jul 2008 20:12:23 +0000 (13:12 -0700)
secchan/secchan.c

index e99499d591a5fbf12d1e91b0955e9e049791710e..0f8ac9870b4ce5c506f2c7287ff086e8618e4969 100644 (file)
@@ -666,6 +666,10 @@ validate_dhcp_offer(const struct dhcp_msg *msg, void *aux)
         return false;
     }
     accept = !regexec(&accept_controller_regex, vconn_name, 0, NULL, 0);
+    if (!accept) {
+        VLOG_WARN("rejecting controller vconn that fails to match %s",
+                  accept_controller_re);
+    }
     free(vconn_name);
     return accept;
 }