In this patch we implement a utility function to compare ANSI
strings using the Rtl* functions. As much as possible, in an
NDIS driver, we stick to Rtl* functions for memory/string
manipulation.
Signed-off-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
src->Flink = src;
src->Blink = src;
}
+
+BOOLEAN
+OvsCompareString(PVOID string1, PVOID string2)
+{
+ /*
+ * Not a super-efficient string compare since we walk over the strings
+ * twice: to initialize, and then to do the comparison.
+ */
+ STRING str1, str2;
+
+ RtlInitString(&str1, string1);
+ RtlInitString(&str2, string2);
+ return RtlEqualString(&str1, &str2, FALSE);
+}
#define BIT16(_x) ((UINT16)0x1 << (_x))
#define BIT32(_x) ((UINT32)0x1 << (_x))
+BOOLEAN OvsCompareString(PVOID string1, PVOID string2);
+
#endif /* __UTIL_H_ */