constants.pm 1.18 KB
Newer Older
Nigel Kukard's avatar
Nigel Kukard committed
1
# SMRadius Constants
Wepongo's avatar
Wepongo committed
2
# Copyright (C) 2007-2015, AllWorldIT
Nigel Kukard's avatar
Nigel Kukard committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.



## @class smradius::constants
# SMRadius constants package
package smradius::constants;
Nigel Kukard's avatar
Nigel Kukard committed
23
use base qw(Exporter);
Nigel Kukard's avatar
Nigel Kukard committed
24
25

use strict;
Nigel Kukard's avatar
Nigel Kukard committed
26
27
28
use warnings;


Nigel Kukard's avatar
Nigel Kukard committed
29

Nigel Kukard's avatar
Nigel Kukard committed
30
our (@EXPORT,@EXPORT_OK);
Nigel Kukard's avatar
Nigel Kukard committed
31
32
33
@EXPORT = qw(
	RES_OK
	RES_ERROR
Nigel Kukard's avatar
Nigel Kukard committed
34

Nigel Kukard's avatar
Nigel Kukard committed
35
36
37
	MOD_RES_ACK
	MOD_RES_NACK
	MOD_RES_SKIP
38

Nigel Kukard's avatar
Nigel Kukard committed
39
	GIGAWORD_VALUE
Nigel Kukard's avatar
Nigel Kukard committed
40
41
42
43
44
);
@EXPORT_OK = ();


use constant {
45
46
	RES_OK => 0,
	RES_ERROR => -1,
Nigel Kukard's avatar
Nigel Kukard committed
47

48
49
50
	MOD_RES_SKIP => 0,
	MOD_RES_ACK => 1,
	MOD_RES_NACK => 2,
Nigel Kukard's avatar
Nigel Kukard committed
51

Nigel Kukard's avatar
Nigel Kukard committed
52
	GIGAWORD_VALUE => 2**32,
Nigel Kukard's avatar
Nigel Kukard committed
53
54
55
56
57
58
};



1;
# vim: ts=4