@@ -32,7 +32,7 @@ static const struct xt_table packet_mangler = {
3232};
3333
3434static unsigned int
35- ip6t_mangle_out (struct sk_buff * skb , const struct net_device * out )
35+ ip6t_mangle_out (struct sk_buff * skb , const struct nf_hook_state * state )
3636{
3737 unsigned int ret ;
3838 struct in6_addr saddr , daddr ;
@@ -57,8 +57,8 @@ ip6t_mangle_out(struct sk_buff *skb, const struct net_device *out)
5757 /* flowlabel and prio (includes version, which shouldn't change either */
5858 flowlabel = * ((u_int32_t * )ipv6_hdr (skb ));
5959
60- ret = ip6t_do_table (skb , NF_INET_LOCAL_OUT , NULL , out ,
61- dev_net (out )-> ipv6 .ip6table_mangle );
60+ ret = ip6t_do_table (skb , NF_INET_LOCAL_OUT , state ,
61+ dev_net (state -> out )-> ipv6 .ip6table_mangle );
6262
6363 if (ret != NF_DROP && ret != NF_STOLEN &&
6464 (!ipv6_addr_equal (& ipv6_hdr (skb )-> saddr , & saddr ) ||
@@ -80,12 +80,12 @@ ip6table_mangle_hook(const struct nf_hook_ops *ops, struct sk_buff *skb,
8080 const struct nf_hook_state * state )
8181{
8282 if (ops -> hooknum == NF_INET_LOCAL_OUT )
83- return ip6t_mangle_out (skb , state -> out );
83+ return ip6t_mangle_out (skb , state );
8484 if (ops -> hooknum == NF_INET_POST_ROUTING )
85- return ip6t_do_table (skb , ops -> hooknum , state -> in , state -> out ,
85+ return ip6t_do_table (skb , ops -> hooknum , state ,
8686 dev_net (state -> out )-> ipv6 .ip6table_mangle );
8787 /* INPUT/FORWARD */
88- return ip6t_do_table (skb , ops -> hooknum , state -> in , state -> out ,
88+ return ip6t_do_table (skb , ops -> hooknum , state ,
8989 dev_net (state -> in )-> ipv6 .ip6table_mangle );
9090}
9191
0 commit comments