Capability
NAME
Net::BGP::Message::Capability - BGP Capability Object
SYNOPSIS
use Net::BGP::Capability;
my $cap = Net::BGP::Capability.from-raw( $raw );
# or ā¦
my $cap = Net::BGP::Capability.from-hash(
%{ capability-name => 'ASN32', asn => '65550' }
);
DESCRIPTION
BGP Capability Object
Constructors
from-raw
Constructs a new object for a given raw binary buffer.
from-hash
Constructs a new object for a given hash. This parent class looks only for
the key of capability-code
or capability-name
. If a name is specified,
it must be associated with a registered child class. If both a name and a
code are specified, the name and code must both be associated with the same
child class.
Methods
capability-code
Cpaability code of the object.
capability-name
The capability name of the object.
payload
The raw byte buffer (buf8
) corresponding to the RFC definition of value
.
raw
Returns the raw (wire format) data for this capability.
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.