Lines Matching defs:key
88 #define IP_TUNNEL_INFO_IPV6 0x02 /* key contains IPv6 addresses */
103 struct ip_tunnel_key key;
191 __be32 key;
279 static inline void ip_tunnel_key_init(struct ip_tunnel_key *key,
286 key->tun_id = tun_id;
287 key->u.ipv4.src = saddr;
288 key->u.ipv4.dst = daddr;
289 memset((unsigned char *)key + IP_TUNNEL_KEY_IPV4_PAD,
291 key->tos = tos;
292 key->ttl = ttl;
293 key->label = label;
294 ip_tunnel_flags_copy(key->tun_flags, tun_flags);
300 key->tp_src = tp_src;
301 key->tp_dst = tp_dst;
304 if (sizeof(*key) != IP_TUNNEL_KEY_SIZE)
305 memset((unsigned char *)key + IP_TUNNEL_KEY_SIZE,
306 0, sizeof(*key) - IP_TUNNEL_KEY_SIZE);
316 return !info || !test_bit(IP_TUNNEL_NOCACHE_BIT, info->key.tun_flags);
325 static inline __be64 key32_to_tunnel_id(__be32 key)
328 return (__force __be64)key;
330 return (__force __be64)((__force u64)key << 32);
349 __be32 key, __u8 tos,
366 fl4->fl4_gre_key = key;
401 __be32 key);
653 ip_tunnel_flags_or(info->key.tun_flags, info->key.tun_flags,