blob: 4da2709e6b71407d86d1a5d07dcd2f873f8fb0d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
#ifndef RXE_NS_H
#define RXE_NS_H
struct sock *rxe_ns_pernet_sk4(struct net *net);
void rxe_ns_pernet_set_sk4(struct net *net, struct sock *sk);
#if IS_ENABLED(CONFIG_IPV6)
void rxe_ns_pernet_set_sk6(struct net *net, struct sock *sk);
struct sock *rxe_ns_pernet_sk6(struct net *net);
#else /* IPv6 */
static inline struct sock *rxe_ns_pernet_sk6(struct net *net)
{
return NULL;
}
static inline void rxe_ns_pernet_set_sk6(struct net *net, struct sock *sk)
{
}
#endif /* IPv6 */
int rxe_namespace_init(void);
void rxe_namespace_exit(void);
#endif /* RXE_NS_H */
|