Message
NAME
Net::BGP::Message - BGP Message Parent Class
SYNOPSIS
use Net::BGP::Message;
my $msg = Net::BGP::Message.from-raw( $raw, :$asn32 ); # Might return a child crash
DESCRIPTION
Parent class for messages.
Constructors
from-raw
Constructs a new object (likely in a subclass) for a given raw binary buffer.
You must pass :asn32
, a boolean that is true if the connection supports 32
bit ASNs
from-hash
Constructs a new object (likely in a subclass) for a given hash buffer. This
module uses the message-name
or message-code
key of the hash to determine
which type of message should be returned.
Methods
message-name
Contains an integer that corresponds to the message-code.
message-code
Returns a string that describes what message type the command represents.
Currently understood types include OPEN
.
message-name
Contains an integer that corresponds to the message-code.
raw
Contains the raw message (not including the BGP header).
AUTHOR
Joelle Maslak <[email protected]>
COPYRIGHT AND LICENSE
Copyright Ā© 2018-2019 Joelle Maslak
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.