]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/netfilter/xt_NFLOG.c
[NETFILTER]: nfnetlink: support attribute policies
[mv-sheeva.git] / net / netfilter / xt_NFLOG.c
index 901ed7abaa1bcf433f90bb3123a77d4bcd3ee57b..d3594c7ccb268b4c49577c828f77a86b5d2b6db8 100644 (file)
@@ -38,21 +38,21 @@ nflog_target(struct sk_buff **pskb,
        return XT_CONTINUE;
 }
 
-static int
+static bool
 nflog_checkentry(const char *tablename, const void *entry,
                 const struct xt_target *target, void *targetinfo,
                 unsigned int hookmask)
 {
-       struct xt_nflog_info *info = targetinfo;
+       const struct xt_nflog_info *info = targetinfo;
 
        if (info->flags & ~XT_NFLOG_MASK)
-               return 0;
+               return false;
        if (info->prefix[sizeof(info->prefix) - 1] != '\0')
-               return 0;
-       return 1;
+               return false;
+       return true;
 }
 
-static struct xt_target xt_nflog_target[] = {
+static struct xt_target xt_nflog_target[] __read_mostly = {
        {
                .name           = "NFLOG",
                .family         = AF_INET,