@@ -619,7 +619,7 @@ static int check_hbh_len(struct sk_buff *skb)
619619
620620/* Replicate the checks that IPv6 does on packet reception and pass the packet
621621 * to ip6tables, which doesn't support NAT, so things are fairly simple. */
622- static unsigned int br_nf_pre_routing_ipv6 (unsigned int hook ,
622+ static unsigned int br_nf_pre_routing_ipv6 (const struct nf_hook_ops * ops ,
623623 struct sk_buff * skb ,
624624 const struct net_device * in ,
625625 const struct net_device * out ,
@@ -669,7 +669,8 @@ static unsigned int br_nf_pre_routing_ipv6(unsigned int hook,
669669 * receiving device) to make netfilter happy, the REDIRECT
670670 * target in particular. Save the original destination IP
671671 * address to be able to detect DNAT afterwards. */
672- static unsigned int br_nf_pre_routing (unsigned int hook , struct sk_buff * skb ,
672+ static unsigned int br_nf_pre_routing (const struct nf_hook_ops * ops ,
673+ struct sk_buff * skb ,
673674 const struct net_device * in ,
674675 const struct net_device * out ,
675676 int (* okfn )(struct sk_buff * ))
@@ -691,7 +692,7 @@ static unsigned int br_nf_pre_routing(unsigned int hook, struct sk_buff *skb,
691692 return NF_ACCEPT ;
692693
693694 nf_bridge_pull_encap_header_rcsum (skb );
694- return br_nf_pre_routing_ipv6 (hook , skb , in , out , okfn );
695+ return br_nf_pre_routing_ipv6 (ops , skb , in , out , okfn );
695696 }
696697
697698 if (!brnf_call_iptables && !br -> nf_call_iptables )
@@ -727,7 +728,8 @@ static unsigned int br_nf_pre_routing(unsigned int hook, struct sk_buff *skb,
727728 * took place when the packet entered the bridge), but we
728729 * register an IPv4 PRE_ROUTING 'sabotage' hook that will
729730 * prevent this from happening. */
730- static unsigned int br_nf_local_in (unsigned int hook , struct sk_buff * skb ,
731+ static unsigned int br_nf_local_in (const struct nf_hook_ops * ops ,
732+ struct sk_buff * skb ,
731733 const struct net_device * in ,
732734 const struct net_device * out ,
733735 int (* okfn )(struct sk_buff * ))
@@ -765,7 +767,8 @@ static int br_nf_forward_finish(struct sk_buff *skb)
765767 * but we are still able to filter on the 'real' indev/outdev
766768 * because of the physdev module. For ARP, indev and outdev are the
767769 * bridge ports. */
768- static unsigned int br_nf_forward_ip (unsigned int hook , struct sk_buff * skb ,
770+ static unsigned int br_nf_forward_ip (const struct nf_hook_ops * ops ,
771+ struct sk_buff * skb ,
769772 const struct net_device * in ,
770773 const struct net_device * out ,
771774 int (* okfn )(struct sk_buff * ))
@@ -818,7 +821,8 @@ static unsigned int br_nf_forward_ip(unsigned int hook, struct sk_buff *skb,
818821 return NF_STOLEN ;
819822}
820823
821- static unsigned int br_nf_forward_arp (unsigned int hook , struct sk_buff * skb ,
824+ static unsigned int br_nf_forward_arp (const struct nf_hook_ops * ops ,
825+ struct sk_buff * skb ,
822826 const struct net_device * in ,
823827 const struct net_device * out ,
824828 int (* okfn )(struct sk_buff * ))
@@ -878,7 +882,8 @@ static int br_nf_dev_queue_xmit(struct sk_buff *skb)
878882#endif
879883
880884/* PF_BRIDGE/POST_ROUTING ********************************************/
881- static unsigned int br_nf_post_routing (unsigned int hook , struct sk_buff * skb ,
885+ static unsigned int br_nf_post_routing (const struct nf_hook_ops * ops ,
886+ struct sk_buff * skb ,
882887 const struct net_device * in ,
883888 const struct net_device * out ,
884889 int (* okfn )(struct sk_buff * ))
@@ -923,7 +928,8 @@ static unsigned int br_nf_post_routing(unsigned int hook, struct sk_buff *skb,
923928/* IP/SABOTAGE *****************************************************/
924929/* Don't hand locally destined packets to PF_INET(6)/PRE_ROUTING
925930 * for the second time. */
926- static unsigned int ip_sabotage_in (unsigned int hook , struct sk_buff * skb ,
931+ static unsigned int ip_sabotage_in (const struct nf_hook_ops * ops ,
932+ struct sk_buff * skb ,
927933 const struct net_device * in ,
928934 const struct net_device * out ,
929935 int (* okfn )(struct sk_buff * ))
0 commit comments