Thomas Gleixner | 5b497af | 2019-05-29 07:18:09 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Roopa Prabhu | e3e4712 | 2015-07-21 10:43:53 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2015 Cumulus Networks, Inc. |
Roopa Prabhu | e3e4712 | 2015-07-21 10:43:53 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef _NET_MPLS_IPTUNNEL_H |
| 7 | #define _NET_MPLS_IPTUNNEL_H 1 |
| 8 | |
Roopa Prabhu | e3e4712 | 2015-07-21 10:43:53 +0200 | [diff] [blame] | 9 | struct mpls_iptunnel_encap { |
Roopa Prabhu | f8efb73 | 2015-10-23 06:03:27 -0700 | [diff] [blame] | 10 | u8 labels; |
Robert Shearman | a59166e | 2017-03-10 20:43:25 +0000 | [diff] [blame] | 11 | u8 ttl_propagate; |
| 12 | u8 default_ttl; |
David Ahern | 1511009 | 2017-03-31 07:14:04 -0700 | [diff] [blame] | 13 | u8 reserved1; |
| 14 | u32 label[0]; |
Roopa Prabhu | e3e4712 | 2015-07-21 10:43:53 +0200 | [diff] [blame] | 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 |