]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/netfilter/xt_dscp.c
netfilter: x_tables: move hook state into xt_action_param structure
[mirror_ubuntu-artful-kernel.git] / net / netfilter / xt_dscp.c
index 64670fc5d0e1a581f4e3b3885d8117c7a70b0edb..236ac8008909d3abdf1d236406fc0bb0bb48dffd 100644 (file)
@@ -58,7 +58,7 @@ static bool tos_mt(const struct sk_buff *skb, struct xt_action_param *par)
 {
        const struct xt_tos_match_info *info = par->matchinfo;
 
-       if (par->family == NFPROTO_IPV4)
+       if (xt_family(par) == NFPROTO_IPV4)
                return ((ip_hdr(skb)->tos & info->tos_mask) ==
                       info->tos_value) ^ !!info->invert;
        else