Skip to content

Commit

Permalink
Merge pull request #636 from dhenza/revert-635-master
Browse files Browse the repository at this point in the history
Revert "Addresses issues  #588 - Function description for DecreaseTTL"
  • Loading branch information
gshimansky authored Aug 14, 2019
2 parents 5a09833 + 53fb15b commit 27d1256
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 27d1256

Please sign in to comment.