xref: /kernel/linux/linux-5.10/include/net/mpls_iptunnel.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/include/net/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2015 Cumulus Networks, Inc.
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef _NET_MPLS_IPTUNNEL_H
78c2ecf20Sopenharmony_ci#define _NET_MPLS_IPTUNNEL_H 1
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cistruct mpls_iptunnel_encap {
108c2ecf20Sopenharmony_ci	u8	labels;
118c2ecf20Sopenharmony_ci	u8	ttl_propagate;
128c2ecf20Sopenharmony_ci	u8	default_ttl;
138c2ecf20Sopenharmony_ci	u8	reserved1;
148c2ecf20Sopenharmony_ci	u32	label[];
158c2ecf20Sopenharmony_ci};
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_cistatic inline struct mpls_iptunnel_encap *mpls_lwtunnel_encap(struct lwtunnel_state *lwtstate)
188c2ecf20Sopenharmony_ci{
198c2ecf20Sopenharmony_ci	return (struct mpls_iptunnel_encap *)lwtstate->data;
208c2ecf20Sopenharmony_ci}
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#endif
23

Indexes created Thu Nov 07 10:32:03 CST 2024