Linux Audio

Check our new training course

Loading...
v6.13.7
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * Copyright (c) 2015 Cumulus Networks, Inc.
 
 
 
 
 
 
 
 
 
 4 */
 5
 6#ifndef _NET_MPLS_IPTUNNEL_H
 7#define _NET_MPLS_IPTUNNEL_H 1
 8
 9#include <linux/types.h>
10#include <net/lwtunnel.h>
11
12struct mpls_iptunnel_encap {
 
13	u8	labels;
14	u8	ttl_propagate;
15	u8	default_ttl;
16	u8	reserved1;
17	u32	label[];
18};
19
20static inline struct mpls_iptunnel_encap *mpls_lwtunnel_encap(struct lwtunnel_state *lwtstate)
21{
22	return (struct mpls_iptunnel_encap *)lwtstate->data;
23}
24
25#endif
v4.6
 
 1/*
 2 * Copyright (c) 2015 Cumulus Networks, Inc.
 3 *
 4 * This program is free software; you can redistribute it and/or
 5 * modify it under the terms of version 2 of the GNU General Public
 6 * License as published by the Free Software Foundation.
 7 *
 8 * This program is distributed in the hope that it will be useful, but
 9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
12 */
13
14#ifndef _NET_MPLS_IPTUNNEL_H
15#define _NET_MPLS_IPTUNNEL_H 1
16
17#define MAX_NEW_LABELS 2
 
18
19struct mpls_iptunnel_encap {
20	u32	label[MAX_NEW_LABELS];
21	u8	labels;
 
 
 
 
22};
23
24static inline struct mpls_iptunnel_encap *mpls_lwtunnel_encap(struct lwtunnel_state *lwtstate)
25{
26	return (struct mpls_iptunnel_encap *)lwtstate->data;
27}
28
29#endif