| 1 | #!/bin/false | ||
| 2 | # ABSTRACT: Reconfigure Accept option (code 20) -- zero-length data | ||
| 3 | # PODNAME: Net::DHCPv6::Option::ReconfAccept | ||
| 4 | use strictures 2; | ||
| 5 | |||
| 6 | package Net::DHCPv6::Option::ReconfAccept; | ||
| 7 | $Net::DHCPv6::Option::ReconfAccept::VERSION = '0.002'; | ||
| 8 | use Net::DHCPv6::OptionList; | ||
| 9 | use Net::DHCPv6::Constants; | ||
| 10 | use parent 'Net::DHCPv6::Option'; | ||
| 11 | use namespace::clean; | ||
| 12 | |||
| 13 | sub new { | ||
| 14 | my ( $class, %args ) = @_; | ||
| 15 | $args{code} = $OPTION_RECONF_ACCEPT; | ||
| 16 | return $class->SUPER::new( %args ); | ||
| 17 | } | ||
| 18 | |||
| 19 | sub from_bytes_inner { | ||
| 20 | my ( $class, $code, $payload ) = @_; | ||
| 21 | return $class->new; | ||
| 22 | } | ||
| 23 | |||
| 24 | $Net::DHCPv6::OptionList::OPTION_CLASS{$OPTION_RECONF_ACCEPT} = __PACKAGE__; | ||
| 25 | 1; | ||
| 26 | |||
| 27 | __END__ |