netfilter: x_tables: use NFPROTO_* in extensions
[firefly-linux-kernel-4.4.55.git] / net / netfilter / xt_u32.c
index 627e0f336d54b45b84f9417b0757d3320acf86c2..ed9f834061129488345a52dc099fa9e24ffffb29 100644 (file)
@@ -102,14 +102,14 @@ u32_mt(const struct sk_buff *skb, const struct net_device *in,
 static struct xt_match u32_mt_reg[] __read_mostly = {
        {
                .name       = "u32",
-               .family     = AF_INET,
+               .family     = NFPROTO_IPV4,
                .match      = u32_mt,
                .matchsize  = sizeof(struct xt_u32),
                .me         = THIS_MODULE,
        },
        {
                .name       = "u32",
-               .family     = AF_INET6,
+               .family     = NFPROTO_IPV6,
                .match      = u32_mt,
                .matchsize  = sizeof(struct xt_u32),
                .me         = THIS_MODULE,