mpls_iptunnel.h 481 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2015 Cumulus Networks, Inc.
  4. */
  5. #ifndef _NET_MPLS_IPTUNNEL_H
  6. #define _NET_MPLS_IPTUNNEL_H 1
  7. #include <linux/types.h>
  8. #include <net/lwtunnel.h>
  9. struct mpls_iptunnel_encap {
  10. u8 labels;
  11. u8 ttl_propagate;
  12. u8 default_ttl;
  13. u8 reserved1;
  14. u32 label[];
  15. };
  16. static inline struct mpls_iptunnel_encap *mpls_lwtunnel_encap(struct lwtunnel_state *lwtstate)
  17. {
  18. return (struct mpls_iptunnel_encap *)lwtstate->data;
  19. }
  20. #endif