Generic
NAME
Net::BGP::Message::Capability::Generic - BGP Generic Capability Object
SYNOPSIS
use Net::BGP::Capability::Generic;
my $cap = Net::BGP::Capability::Generic.from-raw( $raw );
# or …
my $cap = Net::BGP::Capability::Generic.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
and cvalue
. Capability code should represent
the desired capability code. Value should be a buf8
containing the payload
data (value
in RFC standards).
Methods
capability-code
Cpaability code of the object.
capability-name
The capability name of the object.
raw
Returns the raw (wire format) data for this capability.
payload
The raw byte buffer (buf8
) corresponding to the RFC definition of value
.
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.