mpls: allow TTL propagation to IP packets to be configured
[linux-2.6-block.git] / net / mpls / internal.h
index 76360d8b95798e148c5d6a48ce3375eeadcad5a5..62928d8fabd1b94eaf67aa46043a6ce40b525113 100644 (file)
@@ -90,6 +90,12 @@ struct mpls_nh { /* next hop label forwarding entry */
        u8                      nh_via_table;
 };
 
+enum mpls_ttl_propagation {
+       MPLS_TTL_PROP_DEFAULT,
+       MPLS_TTL_PROP_ENABLED,
+       MPLS_TTL_PROP_DISABLED,
+};
+
 /* The route, nexthops and vias are stored together in the same memory
  * block:
  *
@@ -116,6 +122,7 @@ struct mpls_route { /* next hop label forwarding entry */
        u8                      rt_protocol;
        u8                      rt_payload_type;
        u8                      rt_max_alen;
+       u8                      rt_ttl_propagate;
        unsigned int            rt_nhn;
        unsigned int            rt_nhn_alive;
        struct mpls_nh          rt_nh[0];