blob: 6b4759eae1582fc924a0dad10951cbc4fa73b3b9 [file] [log] [blame]
Thomas Gleixner5b497af2019-05-29 07:18:09 -07001/* SPDX-License-Identifier: GPL-2.0-only */
Roopa Prabhue3e47122015-07-21 10:43:53 +02002/*
3 * Copyright (c) 2015 Cumulus Networks, Inc.
Roopa Prabhue3e47122015-07-21 10:43:53 +02004 */
5
6#ifndef _NET_MPLS_IPTUNNEL_H
7#define _NET_MPLS_IPTUNNEL_H 1
8
Roopa Prabhue3e47122015-07-21 10:43:53 +02009struct mpls_iptunnel_encap {
Roopa Prabhuf8efb732015-10-23 06:03:27 -070010 u8 labels;
Robert Shearmana59166e2017-03-10 20:43:25 +000011 u8 ttl_propagate;
12 u8 default_ttl;
David Ahern15110092017-03-31 07:14:04 -070013 u8 reserved1;
14 u32 label[0];
Roopa Prabhue3e47122015-07-21 10:43:53 +020015};
16
17static 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