mpls_iptunnel.h (e5451c8f8330e03ad3cfa16048b4daf961af434f) mpls_iptunnel.h (a59166e470868d92f0813977817e99e699398af5)
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

--- 5 unchanged lines hidden (view full) ---

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;
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

--- 5 unchanged lines hidden (view full) ---

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 u8 ttl_propagate;
23 u8 default_ttl;
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
24};
25
26static inline struct mpls_iptunnel_encap *mpls_lwtunnel_encap(struct lwtunnel_state *lwtstate)
27{
28 return (struct mpls_iptunnel_encap *)lwtstate->data;
29}
30
31#endif