Merge tag 'arm-fixes-6.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-block.git] / include / net / rpl.h
CommitLineData
8610c7c6
AA
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * RPL implementation
4 *
5 * Author:
6 * (C) 2020 Alexander Aring <alex.aring@gmail.com>
7 */
8
9#ifndef _NET_RPL_H
10#define _NET_RPL_H
11
12#include <linux/rpl.h>
13
a7a29f9c
AA
14#if IS_ENABLED(CONFIG_IPV6_RPL_LWTUNNEL)
15extern int rpl_init(void);
16extern void rpl_exit(void);
17#else
18static inline int rpl_init(void)
19{
20 return 0;
21}
22
23static inline void rpl_exit(void) {}
24#endif
25
8610c7c6
AA
26void ipv6_rpl_srh_decompress(struct ipv6_rpl_sr_hdr *outhdr,
27 const struct ipv6_rpl_sr_hdr *inhdr,
28 const struct in6_addr *daddr, unsigned char n);
29
30void ipv6_rpl_srh_compress(struct ipv6_rpl_sr_hdr *outhdr,
31 const struct ipv6_rpl_sr_hdr *inhdr,
32 const struct in6_addr *daddr, unsigned char n);
33
34#endif /* _NET_RPL_H */