#include <string.h>
#include <netinet/in.h>
|
#define | IPPROTO_UDPLITE 136 |
|
#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) |
|
#define | _STR(c) #c |
|
#define | STR(c) _STR(c) |
|
#define | MIN(a, b) (a < b ? a : b) |
|
#define | MAX(a, b) (a > b ? a : b) |
|
#define | UNUSED __attribute__ ((unused)) |
|
#define | ASSERT_UNUSED |
|
#define | ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x))) |
|
#define ARRAY_SIZE |
( |
|
x | ) |
(sizeof(x) / sizeof(*(x))) |
#define IPPROTO_UDPLITE 136 |
#define MAX |
( |
|
a, |
|
|
|
b |
|
) |
| (a > b ? a : b) |
#define MIN |
( |
|
a, |
|
|
|
b |
|
) |
| (a < b ? a : b) |
#define STRCASEQ |
( |
|
a, |
|
|
|
b |
|
) |
| (strcasecmp(a, b) == 0) |
#define STREQ |
( |
|
a, |
|
|
|
b |
|
) |
| (strcmp(a, b) == 0) |
Referenced by ipset_cache_add(), ipset_cache_del(), ipset_cache_rename(), ipset_cache_swap(), ipset_match_envopt(), ipset_match_option(), ipset_match_typename(), ipset_parse_family(), ipset_parse_name_compat(), ipset_parse_output(), ipset_parse_proto_port(), ipset_type_add(), and parse_commandline().
#define STRNCASEQ |
( |
|
a, |
|
|
|
b, |
|
|
|
n |
|
) |
| (strncasecmp(a, b, n) == 0) |
#define STRNEQ |
( |
|
a, |
|
|
|
b, |
|
|
|
n |
|
) |
| (strncmp(a, b, n) == 0) |