Skip to content

Commit

Permalink
Use last entry to parse srv6 segment list
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuya9786 committed Nov 12, 2023
1 parent 1b7cdaa commit 88babb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/meter/srv6.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (i *Srv6Layer) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) err
i.Flags = data[5]
i.Tag = binary.BigEndian.Uint16(data[6:8])

for j := 0; j < int(i.HdrExtLen/2); j++ {
for j := 0; j < int(i.LastEntry+1); j++ {
startBit := 8 + 16*j
endBit := 24 + 16*j
var addr []byte
Expand Down

0 comments on commit 88babb2

Please sign in to comment.