Skip to content

Commit 5a09833

Browse files
authored
Merge pull request #635 from dhenza/master
Addresses issues #588 - Function description for DecreaseTTL
2 parents 4367f4d + 02ca2bd commit 5a09833

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

0 commit comments

Comments
 (0)