diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-09-08 08:00:57 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-09-08 08:00:57 +0000 |
commit | aedb556b2f3c2c3d1954efd853f4037812d74383 (patch) | |
tree | 8ce6e085bdba38dfe3509306818ec911da231cc9 /sys/netmpls/mpls.h | |
parent | dec2856d44d47d5d78a57faed54c324ad2f292e2 (diff) |
Map the TTL when building the initial MPLS stack from the encapsulated
packet. For IP and IPv6 the corresponding mapttl sysctl needs to be set.
This is needed to make traceroute work over MPLS.
OK michele@
Diffstat (limited to 'sys/netmpls/mpls.h')
-rw-r--r-- | sys/netmpls/mpls.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netmpls/mpls.h b/sys/netmpls/mpls.h index 316d0f7ed86..64122e8679d 100644 --- a/sys/netmpls/mpls.h +++ b/sys/netmpls/mpls.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mpls.h,v 1.24 2010/06/09 11:40:36 claudio Exp $ */ +/* $OpenBSD: mpls.h,v 1.25 2010/09/08 08:00:56 claudio Exp $ */ /* * Copyright (C) 1999, 2000 and 2001 AYAME Project, WIDE Project. @@ -168,6 +168,9 @@ extern int mpls_raw_usrreq(struct socket *, int, struct mbuf *, extern struct ifqueue mplsintrq; /* MPLS input queue */ extern int mplsqmaxlen; /* MPLS input queue length */ extern int mpls_defttl; +extern int mpls_mapttl_ip; +extern int mpls_mapttl_ip6; + void mpls_init(void); void mplsintr(void); |