From f1b2412ed58f56e86a70697ae3eaf55c585c39fe Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Fri, 10 Dec 2010 23:04:59 +0100 Subject: Support case-insensitive ICMP and ICMPv6 type/code names. --- include/libipset/utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/libipset/utils.h b/include/libipset/utils.h index 75efdac..c22687f 100644 --- a/include/libipset/utils.h +++ b/include/libipset/utils.h @@ -13,6 +13,8 @@ /* String equality tests */ #define STREQ(a,b) (strcmp(a,b) == 0) #define STRNEQ(a,b,n) (strncmp(a,b,n) == 0) +#define STRCASEQ(a,b) (strcasecmp(a,b) == 0) +#define STRNCASEQ(a,b,n) (strncasecmp(a,b,n) == 0) /* Stringify tokens */ #define _STR(c) #c -- cgit v1.2.3