]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/ipv4/netfilter/nft_reject_ipv4.c
Merge remote-tracking branch 'arm-soc/for-next'
[karo-tx-linux.git] / net / ipv4 / netfilter / nft_reject_ipv4.c
index b07e58b51158514496ce7b136e04eca3266058ce..c24f41c816b33f22b7e31ffb0b53e963b296f8c1 100644 (file)
@@ -27,11 +27,10 @@ static void nft_reject_ipv4_eval(const struct nft_expr *expr,
 
        switch (priv->type) {
        case NFT_REJECT_ICMP_UNREACH:
-               nf_send_unreach(pkt->skb, priv->icmp_code,
-                               pkt->ops->hooknum);
+               nf_send_unreach(pkt->skb, priv->icmp_code, pkt->hook);
                break;
        case NFT_REJECT_TCP_RST:
-               nf_send_reset(pkt->skb, pkt->ops->hooknum);
+               nf_send_reset(pkt->net, pkt->skb, pkt->hook);
                break;
        default:
                break;