@@ -46,7 +46,7 @@ EXPORT_SYMBOL_GPL(inet6_ehashfn);
46
46
*
47
47
* The sockhash lock must be held as a reader here.
48
48
*/
49
- struct sock * __inet6_lookup_established (struct net * net ,
49
+ struct sock * __inet6_lookup_established (const struct net * net ,
50
50
struct inet_hashinfo * hashinfo ,
51
51
const struct in6_addr * saddr ,
52
52
const __be16 sport ,
@@ -126,7 +126,7 @@ static inline int compute_score(struct sock *sk, const struct net *net,
126
126
* Return: NULL if sk doesn't have SO_REUSEPORT set, otherwise a pointer to
127
127
* the selected sock or an error.
128
128
*/
129
- struct sock * inet6_lookup_reuseport (struct net * net , struct sock * sk ,
129
+ struct sock * inet6_lookup_reuseport (const struct net * net , struct sock * sk ,
130
130
struct sk_buff * skb , int doff ,
131
131
const struct in6_addr * saddr ,
132
132
__be16 sport ,
@@ -147,7 +147,7 @@ struct sock *inet6_lookup_reuseport(struct net *net, struct sock *sk,
147
147
EXPORT_SYMBOL_GPL (inet6_lookup_reuseport );
148
148
149
149
/* called with rcu_read_lock() */
150
- static struct sock * inet6_lhash2_lookup (struct net * net ,
150
+ static struct sock * inet6_lhash2_lookup (const struct net * net ,
151
151
struct inet_listen_hashbucket * ilb2 ,
152
152
struct sk_buff * skb , int doff ,
153
153
const struct in6_addr * saddr ,
@@ -174,7 +174,7 @@ static struct sock *inet6_lhash2_lookup(struct net *net,
174
174
return result ;
175
175
}
176
176
177
- struct sock * inet6_lookup_run_sk_lookup (struct net * net ,
177
+ struct sock * inet6_lookup_run_sk_lookup (const struct net * net ,
178
178
int protocol ,
179
179
struct sk_buff * skb , int doff ,
180
180
const struct in6_addr * saddr ,
@@ -199,7 +199,7 @@ struct sock *inet6_lookup_run_sk_lookup(struct net *net,
199
199
}
200
200
EXPORT_SYMBOL_GPL (inet6_lookup_run_sk_lookup );
201
201
202
- struct sock * inet6_lookup_listener (struct net * net ,
202
+ struct sock * inet6_lookup_listener (const struct net * net ,
203
203
struct inet_hashinfo * hashinfo ,
204
204
struct sk_buff * skb , int doff ,
205
205
const struct in6_addr * saddr ,
@@ -243,7 +243,8 @@ struct sock *inet6_lookup_listener(struct net *net,
243
243
}
244
244
EXPORT_SYMBOL_GPL (inet6_lookup_listener );
245
245
246
- struct sock * inet6_lookup (struct net * net , struct inet_hashinfo * hashinfo ,
246
+ struct sock * inet6_lookup (const struct net * net ,
247
+ struct inet_hashinfo * hashinfo ,
247
248
struct sk_buff * skb , int doff ,
248
249
const struct in6_addr * saddr , const __be16 sport ,
249
250
const struct in6_addr * daddr , const __be16 dport ,
0 commit comments