PW_NAS_IP_ADDRESS ?

Nicolas Baradakis nbk at sitadelle.com
Wed Sep 14 15:36:04 CEST 2005


Iandc Davies wrote:

> Using an example ip address of 213.137.69.38, this converts to d5 89 45 26
> (hex).
> 
> Is it OK to split the above hex into 8 bits so that it can fit into the
> vp->strvalue format or is there another way ?

The IP addresses are usually stored in vp->lvalue. I note the easiest
way to assign values is to use the function pairparsevalue() in
src/lib/valuepair.c

-- 
Nicolas Baradakis




More information about the Freeradius-Users mailing list