@@ -114,7 +114,7 @@ void udp_v6_rehash(struct sock *sk)
114
114
udp_lib_rehash (sk , new_hash );
115
115
}
116
116
117
- static int compute_score (struct sock * sk , struct net * net ,
117
+ static int compute_score (struct sock * sk , const struct net * net ,
118
118
const struct in6_addr * saddr , __be16 sport ,
119
119
const struct in6_addr * daddr , unsigned short hnum ,
120
120
int dif , int sdif )
@@ -160,7 +160,7 @@ static int compute_score(struct sock *sk, struct net *net,
160
160
}
161
161
162
162
/* called with rcu_read_lock() */
163
- static struct sock * udp6_lib_lookup2 (struct net * net ,
163
+ static struct sock * udp6_lib_lookup2 (const struct net * net ,
164
164
const struct in6_addr * saddr , __be16 sport ,
165
165
const struct in6_addr * daddr , unsigned int hnum ,
166
166
int dif , int sdif , struct udp_hslot * hslot2 ,
@@ -217,7 +217,7 @@ static struct sock *udp6_lib_lookup2(struct net *net,
217
217
}
218
218
219
219
/* rcu_read_lock() must be held */
220
- struct sock * __udp6_lib_lookup (struct net * net ,
220
+ struct sock * __udp6_lib_lookup (const struct net * net ,
221
221
const struct in6_addr * saddr , __be16 sport ,
222
222
const struct in6_addr * daddr , __be16 dport ,
223
223
int dif , int sdif , struct udp_table * udptable ,
@@ -300,7 +300,7 @@ struct sock *udp6_lib_lookup_skb(const struct sk_buff *skb,
300
300
* Does increment socket refcount.
301
301
*/
302
302
#if IS_ENABLED (CONFIG_NF_TPROXY_IPV6 ) || IS_ENABLED (CONFIG_NF_SOCKET_IPV6 )
303
- struct sock * udp6_lib_lookup (struct net * net , const struct in6_addr * saddr , __be16 sport ,
303
+ struct sock * udp6_lib_lookup (const struct net * net , const struct in6_addr * saddr , __be16 sport ,
304
304
const struct in6_addr * daddr , __be16 dport , int dif )
305
305
{
306
306
struct sock * sk ;
0 commit comments