@@ -619,7 +619,7 @@ static int check_hbh_len(struct sk_buff *skb)
619
619
620
620
/* Replicate the checks that IPv6 does on packet reception and pass the packet
621
621
* 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 ,
623
623
struct sk_buff * skb ,
624
624
const struct net_device * in ,
625
625
const struct net_device * out ,
@@ -669,7 +669,8 @@ static unsigned int br_nf_pre_routing_ipv6(unsigned int hook,
669
669
* receiving device) to make netfilter happy, the REDIRECT
670
670
* target in particular. Save the original destination IP
671
671
* 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 ,
673
674
const struct net_device * in ,
674
675
const struct net_device * out ,
675
676
int (* okfn )(struct sk_buff * ))
@@ -691,7 +692,7 @@ static unsigned int br_nf_pre_routing(unsigned int hook, struct sk_buff *skb,
691
692
return NF_ACCEPT ;
692
693
693
694
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 );
695
696
}
696
697
697
698
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,
727
728
* took place when the packet entered the bridge), but we
728
729
* register an IPv4 PRE_ROUTING 'sabotage' hook that will
729
730
* 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 ,
731
733
const struct net_device * in ,
732
734
const struct net_device * out ,
733
735
int (* okfn )(struct sk_buff * ))
@@ -765,7 +767,8 @@ static int br_nf_forward_finish(struct sk_buff *skb)
765
767
* but we are still able to filter on the 'real' indev/outdev
766
768
* because of the physdev module. For ARP, indev and outdev are the
767
769
* 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 ,
769
772
const struct net_device * in ,
770
773
const struct net_device * out ,
771
774
int (* okfn )(struct sk_buff * ))
@@ -818,7 +821,8 @@ static unsigned int br_nf_forward_ip(unsigned int hook, struct sk_buff *skb,
818
821
return NF_STOLEN ;
819
822
}
820
823
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 ,
822
826
const struct net_device * in ,
823
827
const struct net_device * out ,
824
828
int (* okfn )(struct sk_buff * ))
@@ -878,7 +882,8 @@ static int br_nf_dev_queue_xmit(struct sk_buff *skb)
878
882
#endif
879
883
880
884
/* 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 ,
882
887
const struct net_device * in ,
883
888
const struct net_device * out ,
884
889
int (* okfn )(struct sk_buff * ))
@@ -923,7 +928,8 @@ static unsigned int br_nf_post_routing(unsigned int hook, struct sk_buff *skb,
923
928
/* IP/SABOTAGE *****************************************************/
924
929
/* Don't hand locally destined packets to PF_INET(6)/PRE_ROUTING
925
930
* 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 ,
927
933
const struct net_device * in ,
928
934
const struct net_device * out ,
929
935
int (* okfn )(struct sk_buff * ))
0 commit comments