[prev in list] [next in list] [prev in thread] [next in thread]
List: freeradius-devel
Subject: Re: [Q] dinamic IP address
From: Kotrekhov Andrey <kota () at ! com ! ua>
Date: 2000-06-14 13:14:13
[Download RAW message or body]
Thank you!
I use base address from previouse net
192.168.1.240+ -> async40 -> 192.168.2.24
:)
On Tue, 13 Jun 2000, Anthony Wood wrote:
> Andrey,
>
> Look at the source, I'm sure you can add a -65 and recompile :)
> (files.c line 1152 in cistron 1.5.4.3-beta18-ldap, if that helps:)
> /*
> * Fix dynamic IP address if needed.
> */
> if ((tmp = pairfind(*reply_pairs, PW_ADD_PORT_TO_IP_ADDRESS)) != NULL){
> if (tmp->lvalue != 0) {
> tmp = pairfind(*reply_pairs, PW_FRAMED_IP_ADDRESS);
> if (tmp) {
> /*
> * FIXME: This only works because IP
> * numbers are stored in host order
> * everywhere in this program.
> */
> #ifdef ASCEND_PORT_HACK
> nas_port = ascend_port_number(nas_port);
> #endif
> tmp->lvalue += nas_port;
> }
> }
> pairdelete(reply_pairs, PW_ADD_PORT_TO_IP_ADDRESS);
> }
>
> If you are adventurous, you could write some code which handles:
>
> Framed-IP-Address = 192.168.1.1-65
>
> This would assign <port-number>-65 IP address rather than <port-number> send a patch:
>
> I'm not sure you might be able to do 192.168.0.192+ also.
>
> Woody
>
> Andrey Kotrekhov wrote:
> >
> > Hello, All!
> > I use dinamic IP assign
> > In my users file I have
> > Framed-IP-Address = 192.168.1.1+
> > for example.
> > But my cisco router return ports , which begin from Async65
> > How can I use address 192.168.1.1 or 192.168.1.2?
> >
> > Best regards.
> > ___________
> > Andy.
>
>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic