help-gnu-radius
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnu-radius] Cisco VSA AV-Pair Attribute Issue


From: Sergey Poznyakoff
Subject: Re: [Help-gnu-radius] Cisco VSA AV-Pair Attribute Issue
Date: Sun, 27 Apr 2003 23:04:53 +0300

Hi Lewis,

When writing parse_cisco_avpair() I didn't account for the fact that
there are several Cisco-AVPair attributes in the packet. The function
analized first of them and exited if it didn't match. That's why you
didn't see any updates. Here is the modified version:

integer
parse_cisco_avpair()
{
        integer i;
        while (*%[Cisco-AVPair](i)) {
                if (%[Cisco-AVPair](i) =~ "nas-tx-speed=\(.*\)") {
                        %[Custom-NAS-TX-Speed] = (integer) \1;
                        return 0;
                }
                i = i + 1;
        }
        return 0;
}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]