mpls_iptunnel.h (a976c2951d8f376112361830aa7762beff83a205) | mpls_iptunnel.h (5b497af42fab12cadc0e29bcb7052cf9963603f5) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-only */ |
|
1/* 2 * Copyright (c) 2015 Cumulus Networks, Inc. | 2/* 3 * 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 17struct mpls_iptunnel_encap { 18 u8 labels; 19 u8 ttl_propagate; 20 u8 default_ttl; 21 u8 reserved1; 22 u32 label[0]; 23}; 24 25static inline struct mpls_iptunnel_encap *mpls_lwtunnel_encap(struct lwtunnel_state *lwtstate) 26{ 27 return (struct mpls_iptunnel_encap *)lwtstate->data; 28} 29 30#endif | 4 */ 5 6#ifndef _NET_MPLS_IPTUNNEL_H 7#define _NET_MPLS_IPTUNNEL_H 1 8 9struct mpls_iptunnel_encap { 10 u8 labels; 11 u8 ttl_propagate; 12 u8 default_ttl; 13 u8 reserved1; 14 u32 label[0]; 15}; 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 |