.. | .. |
---|
112 | 112 | } |
---|
113 | 113 | |
---|
114 | 114 | /* Send RST reply */ |
---|
115 | | -void nf_send_reset(struct net *net, struct sk_buff *oldskb, int hook) |
---|
| 115 | +void nf_send_reset(struct net *net, struct sock *sk, struct sk_buff *oldskb, |
---|
| 116 | + int hook) |
---|
116 | 117 | { |
---|
117 | 118 | struct net_device *br_indev __maybe_unused; |
---|
118 | 119 | struct sk_buff *nskb; |
---|
.. | .. |
---|
144 | 145 | niph = nf_reject_iphdr_put(nskb, oldskb, IPPROTO_TCP, |
---|
145 | 146 | ip4_dst_hoplimit(skb_dst(nskb))); |
---|
146 | 147 | nf_reject_ip_tcphdr_put(nskb, oldskb, oth); |
---|
147 | | - |
---|
148 | | - if (ip_route_me_harder(net, nskb->sk, nskb, RTN_UNSPEC)) |
---|
| 148 | + if (ip_route_me_harder(net, sk, nskb, RTN_UNSPEC)) |
---|
149 | 149 | goto free_nskb; |
---|
150 | 150 | |
---|
151 | 151 | niph = ip_hdr(nskb); |
---|