Skip to content

Commit

Permalink
Revert "Addresses issues #588 - Function description for DecreaseTTL"
Browse files Browse the repository at this point in the history
  • Loading branch information
dhenza authored Aug 13, 2019
1 parent 5a09833 commit 53fb15b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packet/mpls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 53fb15b

Please sign in to comment.