2024-09-09 08:52:07 +00:00
|
|
|
#ifndef _IF_TUNNEL_H_
|
|
|
|
#define _IF_TUNNEL_H_
|
|
|
|
|
|
|
|
#include <linux/ip.h>
|
|
|
|
#include <linux/in6.h>
|
2024-09-09 08:57:42 +00:00
|
|
|
#include <uapi/linux/if_tunnel.h>
|
|
|
|
#include <linux/u64_stats_sync.h>
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
/*
|
|
|
|
* Locking : hash tables are protected by RCU and RTNL
|
|
|
|
*/
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
#define for_each_ip_tunnel_rcu(pos, start) \
|
|
|
|
for (pos = rcu_dereference(start); pos; pos = rcu_dereference(pos->next))
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
#endif /* _IF_TUNNEL_H_ */
|