From 53fb15bb069964d3cd0a3a21993ad4efa05659d8 Mon Sep 17 00:00:00 2001 From: dhenza Date: Tue, 13 Aug 2019 22:39:36 +0200 Subject: [PATCH] Revert "Addresses issues #588 - Function description for DecreaseTTL" --- packet/mpls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packet/mpls.go b/packet/mpls.go index 8f895aab..3c0518d7 100644 --- a/packet/mpls.go +++ b/packet/mpls.go @@ -100,7 +100,7 @@ func (packet *Packet) RemoveMPLS() bool { return true } -// DecreaseTTL decreases the MPLS header TTL by 1 +// SetMPLSLabel sets Label (20 first bits of MPLS header to specified value). func (hdr *MPLSHdr) DecreaseTTL() bool { newTime := SwapBytesUint32(hdr.mpls)&0x000000ff - 1 if newTime == 0 {