Blame view

include/linux/if_tunnel.h 409 Bytes
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  /* SPDX-License-Identifier: GPL-2.0 */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2
3
  #ifndef _IF_TUNNEL_H_
  #define _IF_TUNNEL_H_
c19e654dd   Herbert Xu   gre: Add netlink ...
4
  #include <linux/ip.h>
125a77ed9   Brian Haley   IPv6: Fix 6RD bui...
5
  #include <linux/in6.h>
607ca46e9   David Howells   UAPI: (Scripted) ...
6
  #include <uapi/linux/if_tunnel.h>
aa0010f88   Amerigo Wang   net: convert __IP...
7
  #include <linux/u64_stats_sync.h>
e086cadc0   Amerigo Wang   net: unify for_ea...
8
9
10
11
12
13
  /*
   * Locking : hash tables are protected by RCU and RTNL
   */
  
  #define for_each_ip_tunnel_rcu(pos, start) \
  	for (pos = rcu_dereference(start); pos; pos = rcu_dereference(pos->next))
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
14
  #endif /* _IF_TUNNEL_H_ */