-
Notifications
You must be signed in to change notification settings - Fork 770
Open
Description
Hi. I'm at v3.34.0 and trying to parse a BMP message but failing on parsing the NLRI IPv4AddressPrefix
here's a code snippet that reproduces the issue:
package main
import (
"log"
"github.com/osrg/gobgp/v3/pkg/packet/bmp"
)
func main() {
b := []byte{0x3, 0x0, 0x0, 0x0, 0x5e, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xdd, 0x19, 0x41, 0xa, 0x28, 0x3, 0xc8, 0x67, 0xab, 0x36, 0x6a, 0x0, 0x7, 0x10, 0x98, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0, 0x2e, 0x2, 0x0, 0x0, 0x0, 0xe, 0x40, 0x1, 0x1, 0x0, 0x40, 0x2, 0x0, 0x40, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb, 0xf2, 0x1f, 0xa, 0x28, 0x3, 0xe8}
_, err := bmp.ParseBMPMessage(b)
if err != nil {
log.Fatalf("Error parsing BMP message: %v", err)
}
}
Is this a problem on the BMP message itself ? or rather a bug on the parsing of this message ? I would greatly appreciate your help.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels