]>
Commit | Line | Data |
---|---|---|
5b497af4 | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
e3e4712e RP |
2 | /* |
3 | * Copyright (c) 2015 Cumulus Networks, Inc. | |
e3e4712e RP |
4 | */ |
5 | ||
6 | #ifndef _NET_MPLS_IPTUNNEL_H | |
7 | #define _NET_MPLS_IPTUNNEL_H 1 | |
8 | ||
e3e4712e | 9 | struct mpls_iptunnel_encap { |
f8efb73c | 10 | u8 labels; |
a59166e4 RS |
11 | u8 ttl_propagate; |
12 | u8 default_ttl; | |
1511009c | 13 | u8 reserved1; |
680a9316 | 14 | u32 label[]; |
e3e4712e RP |
15 | }; |
16 | ||
17 | static inline struct mpls_iptunnel_encap *mpls_lwtunnel_encap(struct lwtunnel_state *lwtstate) | |
18 | { | |
19 | return (struct mpls_iptunnel_encap *)lwtstate->data; | |
20 | } | |
21 | ||
22 | #endif |