]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/netfilter/xt_mac.c
[NETFILTER]: Introduce NF_INET_ hook values
[net-next-2.6.git] / net / netfilter / xt_mac.c
index 00490d777a0faa81209aca5a220d2651bc0153d2..6ff4479ca638bb6731b3e39ac9a7938c7877a107 100644 (file)
@@ -50,9 +50,9 @@ static struct xt_match xt_mac_match[] __read_mostly = {
                .family         = AF_INET,
                .match          = match,
                .matchsize      = sizeof(struct xt_mac_info),
-               .hooks          = (1 << NF_IP_PRE_ROUTING) |
-                                 (1 << NF_IP_LOCAL_IN) |
-                                 (1 << NF_IP_FORWARD),
+               .hooks          = (1 << NF_INET_PRE_ROUTING) |
+                                 (1 << NF_INET_LOCAL_IN) |
+                                 (1 << NF_INET_FORWARD),
                .me             = THIS_MODULE,
        },
        {
@@ -60,9 +60,9 @@ static struct xt_match xt_mac_match[] __read_mostly = {
                .family         = AF_INET6,
                .match          = match,
                .matchsize      = sizeof(struct xt_mac_info),
-               .hooks          = (1 << NF_IP6_PRE_ROUTING) |
-                                 (1 << NF_IP6_LOCAL_IN) |
-                                 (1 << NF_IP6_FORWARD),
+               .hooks          = (1 << NF_INET_PRE_ROUTING) |
+                                 (1 << NF_INET_LOCAL_IN) |
+                                 (1 << NF_INET_FORWARD),
                .me             = THIS_MODULE,
        },
 };