^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright (c) 2015 Cumulus Networks, Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #ifndef _NET_MPLS_IPTUNNEL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #define _NET_MPLS_IPTUNNEL_H 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) struct mpls_iptunnel_encap {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) u8 labels;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) u8 ttl_propagate;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) u8 default_ttl;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) u8 reserved1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) u32 label[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) static inline struct mpls_iptunnel_encap *mpls_lwtunnel_encap(struct lwtunnel_state *lwtstate)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) return (struct mpls_iptunnel_encap *)lwtstate->data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #endif