Skip to content

Commit 27d1256

Browse files
authored
Merge pull request #636 from dhenza/revert-635-master
Revert "Addresses issues #588 - Function description for DecreaseTTL"
2 parents 5a09833 + 53fb15b commit 27d1256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packet/mpls.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (packet *Packet) RemoveMPLS() bool {
100100
return true
101101
}
102102

103-
// DecreaseTTL decreases the MPLS header TTL by 1
103+
// SetMPLSLabel sets Label (20 first bits of MPLS header to specified value).
104104
func (hdr *MPLSHdr) DecreaseTTL() bool {
105105
newTime := SwapBytesUint32(hdr.mpls)&0x000000ff - 1
106106
if newTime == 0 {

0 commit comments

Comments
 (0)