| 1 | package LinkLocal::IPv4::Interface::Constants; | ||
| 2 | |||
| 3 | our $VERSION = '0.19_01'; | ||
| 4 | |||
| 5 | # Copyright (C) 2010 Raymond Mroz | ||
| 6 | # | ||
| 7 | # This program is free software: you can redistribute it and/or modify | ||
| 8 | # it under the terms of the GNU General Public License as published by | ||
| 9 | # the Free Software Foundation, either version 3 of the License, or | ||
| 10 | # (at your option) any later version. | ||
| 11 | # | ||
| 12 | # This program is distributed in the hope that it will be useful, | ||
| 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | # GNU General Public License for more details. | ||
| 16 | # | ||
| 17 | # You should have received a copy of the GNU General Public License | ||
| 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 19 | |||
| 20 | use constant { | ||
| 21 | # RFC 3927 defined constants | ||
| 22 | PROBE_WAIT => 1, | ||
| 23 | PROBE_NUM => 3, | ||
| 24 | PROBE_MIN => 1, | ||
| 25 | PROBE_MAX => 2, | ||
| 26 | ANNOUNCE_WAIT => 2, | ||
| 27 | ANNOUNCE_NUM => 2, | ||
| 28 | ANNOUNCE_INTERVAL => 2, | ||
| 29 | MAX_CONFLICTS => 10, | ||
| 30 | RATE_LIMIT_INTERVAL => 60, | ||
| 31 | DEFEND_INTERVAL => 10, | ||
| 32 | }; | ||
| 33 | |||
| 34 | require Exporter; | ||
| 35 | our @ISA = qw(Exporter); | ||
| 36 | our %EXPORT_TAGS = ( | ||
| 37 | const => [ | ||
| 38 | qw( | ||
| 39 | PROBE_WAIT | ||
| 40 | PROBE_NUM | ||
| 41 | PROBE_MIN | ||
| 42 | PROBE_MAX | ||
| 43 | ANNOUNCE_WAIT | ||
| 44 | ANNOUNCE_NUM | ||
| 45 | ANNOUNCE_INTERVAL | ||
| 46 | MAX_CONFLICTS | ||
| 47 | RATE_LIMIT_INTERVAL | ||
| 48 | DEFEND_INTERVAL | ||
| 49 | ) | ||
| 50 | ] | ||
| 51 | ); | ||
| 52 | our @EXPORT_OK = ( @{ $EXPORT_TAGS{'const'} } ); | ||
| 53 | our @EXPORT = qw ( | ||
| 54 | PROBE_WAIT | ||
| 55 | PROBE_NUM | ||
| 56 | PROBE_MIN | ||
| 57 | PROBE_MAX | ||
| 58 | ANNOUNCE_WAIT | ||
| 59 | ANNOUNCE_NUM | ||
| 60 | ANNOUNCE_INTERVAL | ||
| 61 | MAX_CONFLICTS | ||
| 62 | RATE_LIMIT_INTERVAL | ||
| 63 | DEFEND_INTERVAL | ||
| 64 | ); | ||
| 65 | |||
| 66 | "PacMan was here"; | ||
| 67 | __END__ |