bmf: ignore case on the BmfMechanism plugin parameter value
authorFerry Huberts <ferry.huberts@pelagic.nl>
Sun, 6 Mar 2016 12:50:37 +0000 (13:50 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Sun, 6 Mar 2016 16:04:22 +0000 (17:04 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/bmf/src/NetworkInterfaces.c

index 5186084..57f7fc4 100644 (file)
@@ -290,12 +290,12 @@ int SetBmfMechanism(
   void* data __attribute__((unused)),
   set_plugin_parameter_addon addon __attribute__((unused)))
 {
-  if (strcmp(mechanism, "Broadcast") == 0)
+  if (strcasecmp(mechanism, "Broadcast") == 0)
   {
     BmfMechanism = BM_BROADCAST;
     return 0;
   }
-  else if (strcmp(mechanism, "UnicastPromiscuous") == 0)
+  else if (strcasecmp(mechanism, "UnicastPromiscuous") == 0)
   {
     BmfMechanism = BM_UNICAST_PROMISCUOUS;
     return 0;