@@ -114,7 +114,7 @@ void udp_v6_rehash(struct sock *sk)
114114 udp_lib_rehash (sk , new_hash );
115115}
116116
117- static int compute_score (struct sock * sk , struct net * net ,
117+ static int compute_score (struct sock * sk , const struct net * net ,
118118 const struct in6_addr * saddr , __be16 sport ,
119119 const struct in6_addr * daddr , unsigned short hnum ,
120120 int dif , int sdif )
@@ -160,7 +160,7 @@ static int compute_score(struct sock *sk, struct net *net,
160160}
161161
162162/* 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 ,
164164 const struct in6_addr * saddr , __be16 sport ,
165165 const struct in6_addr * daddr , unsigned int hnum ,
166166 int dif , int sdif , struct udp_hslot * hslot2 ,
@@ -217,7 +217,7 @@ static struct sock *udp6_lib_lookup2(struct net *net,
217217}
218218
219219/* 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 ,
221221 const struct in6_addr * saddr , __be16 sport ,
222222 const struct in6_addr * daddr , __be16 dport ,
223223 int dif , int sdif , struct udp_table * udptable ,
@@ -300,7 +300,7 @@ struct sock *udp6_lib_lookup_skb(const struct sk_buff *skb,
300300 * Does increment socket refcount.
301301 */
302302#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 ,
304304 const struct in6_addr * daddr , __be16 dport , int dif )
305305{
306306 struct sock * sk ;
0 commit comments