Skip to content

Commit 35a9f09

Browse files
watalAzunyan19shell720
committed
FIX: LsAddrPrefix length
Co-authored-by: Taisei Tanabe <[email protected]> Co-authored-by: Shuto Masuda <[email protected]>
1 parent 5365453 commit 35a9f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/packet/bgp/bgp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9169,7 +9169,7 @@ func (l *LsAddrPrefix) Serialize(options ...*MarshallingOption) ([]byte, error)
91699169

91709170
buf := make([]byte, 4+len(ser))
91719171
binary.BigEndian.PutUint16(buf[:2], uint16(l.Type))
9172-
binary.BigEndian.PutUint16(buf[2:], l.Length)
9172+
binary.BigEndian.PutUint16(buf[2:4], uint16(len(ser)))
91739173
copy(buf[4:], ser)
91749174

91759175
return buf, nil

0 commit comments

Comments
 (0)