rpl.h (8610c7c6e3bd647ff98d21c8bc0580e77bc2f8b3) | rpl.h (a7a29f9c361f8542604ef959ae6627f423b7a412) |
---|---|
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 | 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 |
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 |
|
14/* Worst decompression memory usage ipv6 address (16) + pad 7 */ 15#define IPV6_RPL_SRH_WORST_SWAP_SIZE (sizeof(struct in6_addr) + 7) 16 17static inline size_t ipv6_rpl_srh_alloc_size(unsigned char n) 18{ 19 return sizeof(struct ipv6_rpl_sr_hdr) + 20 ((n + 1) * sizeof(struct in6_addr)); 21} --- 13 unchanged lines hidden --- | 26/* Worst decompression memory usage ipv6 address (16) + pad 7 */ 27#define IPV6_RPL_SRH_WORST_SWAP_SIZE (sizeof(struct in6_addr) + 7) 28 29static inline size_t ipv6_rpl_srh_alloc_size(unsigned char n) 30{ 31 return sizeof(struct ipv6_rpl_sr_hdr) + 32 ((n + 1) * sizeof(struct in6_addr)); 33} --- 13 unchanged lines hidden --- |