• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

恥ずかしい勘違いから生まれた、DHCP6の不要かつ部分的な実装


Commit MetaInfo

Revision6c889b9b06abd249a633b3924dc5fb65b5e932a8 (tree)
Time2021-08-15 22:16:06
Authordyknon <dyknon@user...>
Commiterdyknon

Log Message

fix AbstractOption::Time

Change Summary

Incremental Difference

--- a/Net/DHCP6/AbstractOption/Time.pm
+++ b/Net/DHCP6/AbstractOption/Time.pm
@@ -13,8 +13,8 @@ sub range { (undef, undef) }
1313
1414 sub data {
1515 my $self = shift;
16- return "\xff\xff\xff\xff" if($self->value == "inf");
17- pack("L>", $self->value);
16+ return "\xff\xff\xff\xff" if($self->time == "inf");
17+ pack("L>", $self->time);
1818 }
1919
2020 sub parse_data {
@@ -37,9 +37,9 @@ sub verify {
3737 my $self = shift;
3838 my $who = shift;
3939 my ($from, $to) = $self->range;
40- return 0 if(defined $from && $from > $self->value);
41- return 0 if(defined $to && $to <= $self->value);
42- return 0 if($self->value != "inf" && $self->value >= 0xffffffff);
40+ return 0 if(defined $from && $from > $self->time);
41+ return 0 if(defined $to && $to <= $self->time);
42+ return 0 if($self->time != "inf" && $self->time >= 0xffffffff);
4343 1;
4444 }
4545