summaryrefslogtreecommitdiffstats
path: root/src/evaluate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/evaluate.c')
-rw-r--r--src/evaluate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/evaluate.c b/src/evaluate.c
index 22b14c97..ff75fc45 100644
--- a/src/evaluate.c
+++ b/src/evaluate.c
@@ -2402,8 +2402,8 @@ static int stmt_evaluate_reject(struct eval_ctx *ctx, struct stmt *stmt)
static int nat_evaluate_family(struct eval_ctx *ctx, struct stmt *stmt)
{
switch (ctx->pctx.family) {
- case AF_INET:
- case AF_INET6:
+ case NFPROTO_IPV4:
+ case NFPROTO_IPV6:
return 0;
default:
return stmt_error(ctx, stmt,
@@ -2418,7 +2418,7 @@ static int evaluate_addr(struct eval_ctx *ctx, struct stmt *stmt,
const struct datatype *dtype;
unsigned int len;
- if (pctx->family == AF_INET) {
+ if (pctx->family == NFPROTO_IPV4) {
dtype = &ipaddr_type;
len = 4 * BITS_PER_BYTE;
} else {