Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
opentrafficshaper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Francisco Manuel Cardoso
opentrafficshaper
Commits
15164408
Commit
15164408
authored
11 years ago
by
Nigel Kukard
Browse files
Options
Downloads
Patches
Plain Diff
Added IANA public enterprise number
parent
8da92bd5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dicts/dictionary.allworldit
+1
-1
1 addition, 1 deletion
dicts/dictionary.allworldit
opentrafficshaper/plugins/radius/radius.pm
+6
-3
6 additions, 3 deletions
opentrafficshaper/plugins/radius/radius.pm
with
7 additions
and
4 deletions
dicts/dictionary.allworldit
+
1
−
1
View file @
15164408
...
...
@@ -16,7 +16,7 @@
VENDOR AllWorldIT
11111
VENDOR AllWorldIT
42109
ATTRIBUTE OpenTrafficShaper-Traffic-Limit 1 string AllWorldIT
ATTRIBUTE OpenTrafficShaper-Traffic-Group 2 integer AllWorldIT
...
...
This diff is collapsed.
Click to expand it.
opentrafficshaper/plugins/radius/radius.pm
+
6
−
3
View file @
15164408
...
...
@@ -45,6 +45,9 @@ use constant {
VERSION
=>
'
0.0.1
',
DATAGRAM_MAXLEN
=>
8192
,
DEFAULT_EXPIRY_PERIOD
=>
86400
,
# IANA public enterprise number
# This is used as the radius vendor code
IANA_PEN
=>
42109
,
};
...
...
@@ -207,15 +210,15 @@ sub server_read {
# Pull in a variables from packet
my
$username
=
$pkt
->
rawattr
("
User-Name
");
my
$trafficGroup
;
if
(
my
$attrRawVal
=
$pkt
->
vsattr
(
11111
,'
OpenTrafficShaper-Traffic-Group
'))
{
if
(
my
$attrRawVal
=
$pkt
->
vsattr
(
IANA_PEN
,'
OpenTrafficShaper-Traffic-Group
'))
{
$trafficGroup
=
@
{
$attrRawVal
}[
0
];
}
my
$trafficClass
;
if
(
my
$attrRawVal
=
$pkt
->
vsattr
(
11111
,'
OpenTrafficShaper-Traffic-Class
'))
{
if
(
my
$attrRawVal
=
$pkt
->
vsattr
(
IANA_PEN
,'
OpenTrafficShaper-Traffic-Class
'))
{
$trafficClass
=
@
{
$attrRawVal
}[
0
];
}
my
$trafficLimit
;
if
(
my
$attrRawVal
=
$pkt
->
vsattr
(
11111
,'
OpenTrafficShaper-Traffic-Limit
'))
{
if
(
my
$attrRawVal
=
$pkt
->
vsattr
(
IANA_PEN
,'
OpenTrafficShaper-Traffic-Limit
'))
{
$trafficLimit
=
@
{
$attrRawVal
}[
0
];
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment