| 1 | #!/bin/false | ||||||||||||||||||||
| 2 | # ABSTRACT: Subscriber ID option (code 38) -- opaque subscriber identification | ||||||||||||||||||||
| 3 | # PODNAME: Net::DHCPv6::Option::SubscriberId | ||||||||||||||||||||
| 4 | 15 | ▶ | use strictures 2; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | package Net::DHCPv6::Option::SubscriberId; | ||||||||||||||||||||
| 7 | 15 | $Net::DHCPv6::Option::SubscriberId::VERSION = '0.003'; | |||||||||||||||||||
| 8 | 15 | ▶ | use Net::DHCPv6::OptionList (); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 9 | 15 | ▶ | use Net::DHCPv6::Constants qw( | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 10 | $OPTION_SUBSCRIBER_ID | ||||||||||||||||||||
| 11 | 15 | ); | |||||||||||||||||||
| 12 | 15 | ▶ | use parent 'Net::DHCPv6::Option'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 13 | 15 | ▶ | use namespace::clean; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 14 | 15 | my $EMPTY = q(); | |||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | 3 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||||||||||||
| 17 | 3 | my ( $class, %args ) = @_; | |||||||||||||||||||
| 18 | 3 | ▶ | my $subscriber_id = $args{subscriber_id} // $EMPTY; | ||||||||||||||||||
|
Condition66%2/3
$args{"subscriber_id"} // $EMPTY
MC/DC0%0/2
$args{"subscriber_id"} // $EMPTY
$args{"subscriber_id"}
$EMPTY
Truth table66%2/3
A // B
A= $args{"subscriber_id"}B= $EMPTY
| |||||||||||||||||||||
| 19 | 3 | $args{code} = $OPTION_SUBSCRIBER_ID; | |||||||||||||||||||
| 20 | 3 | $args{data} = $subscriber_id; | |||||||||||||||||||
| 21 | 3 | my $self = $class->SUPER::new( %args ); | |||||||||||||||||||
| 22 | 3 | $self->{subscriber_id} = $subscriber_id; | |||||||||||||||||||
| 23 | 3 | return bless $self, $class; | |||||||||||||||||||
| 24 | } | ||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | 3 | ▶ | sub subscriber_id { return shift->{subscriber_id} } | ||||||||||||||||||
|
Subroutine
subscriber_id: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 27 | |||||||||||||||||||||
| 28 | 1 | ▶ | sub from_bytes_inner { | ||||||||||||||||||
|
Subroutine
from_bytes_inner: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 29 | 1 | my ( $class, $code, $payload ) = @_; | |||||||||||||||||||
| 30 | 1 | return $class->new( subscriber_id => $payload ); | |||||||||||||||||||
| 31 | } | ||||||||||||||||||||
| 32 | |||||||||||||||||||||
| 33 | 15 | $Net::DHCPv6::OptionList::OPTION_CLASS{$OPTION_SUBSCRIBER_ID} = __PACKAGE__; | |||||||||||||||||||
| 34 | 15 | 1; | |||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | __END__ | ||||||||||||||||||||