]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv4/netfilter/ipt_LOG.c
netfilter: xtables: substitute temporary defines by final name
[net-next-2.6.git] / net / ipv4 / netfilter / ipt_LOG.c
index c9ee5c40d1bbb769a6272c752f09feeb0717100b..5234f4f3499ad87e06c9d1bfab14e27d35b77fe6 100644 (file)
@@ -367,7 +367,7 @@ static struct nf_loginfo default_loginfo = {
        .type   = NF_LOG_TYPE_LOG,
        .u = {
                .log = {
-                       .level    = 0,
+                       .level    = 5,
                        .logflags = NF_LOG_MASK,
                },
        },
@@ -425,7 +425,7 @@ ipt_log_packet(u_int8_t pf,
 }
 
 static unsigned int
-log_tg(struct sk_buff *skb, const struct xt_target_param *par)
+log_tg(struct sk_buff *skb, const struct xt_action_param *par)
 {
        const struct ipt_log_info *loginfo = par->targinfo;
        struct nf_loginfo li;
@@ -445,13 +445,13 @@ static int log_tg_check(const struct xt_tgchk_param *par)
 
        if (loginfo->level >= 8) {
                pr_debug("level %u >= 8\n", loginfo->level);
-               return false;
+               return -EINVAL;
        }
        if (loginfo->prefix[sizeof(loginfo->prefix)-1] != '\0') {
                pr_debug("prefix is not null-terminated\n");
-               return false;
+               return -EINVAL;
        }
-       return true;
+       return 0;
 }
 
 static struct xt_target log_tg_reg __read_mostly = {