Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  *  RPL implementation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  *  Author:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *  (C) 2020 Alexander Aring <alex.aring@gmail.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #ifndef _NET_RPL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #define _NET_RPL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <linux/rpl.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #if IS_ENABLED(CONFIG_IPV6_RPL_LWTUNNEL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) extern int rpl_init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) extern void rpl_exit(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) static inline int rpl_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) static inline void rpl_exit(void) {}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) /* Worst decompression memory usage ipv6 address (16) + pad 7 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define IPV6_RPL_SRH_WORST_SWAP_SIZE (sizeof(struct in6_addr) + 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) size_t ipv6_rpl_srh_size(unsigned char n, unsigned char cmpri,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 			 unsigned char cmpre);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) void ipv6_rpl_srh_decompress(struct ipv6_rpl_sr_hdr *outhdr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 			     const struct ipv6_rpl_sr_hdr *inhdr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 			     const struct in6_addr *daddr, unsigned char n);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) void ipv6_rpl_srh_compress(struct ipv6_rpl_sr_hdr *outhdr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 			   const struct ipv6_rpl_sr_hdr *inhdr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 			   const struct in6_addr *daddr, unsigned char n);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #endif /* _NET_RPL_H */