pairadd and pairmake
    Enrik Berkhan 
    enrik#freeradius at planb.de
       
    Fri Jul  6 09:26:29 CEST 2007
    
    
  
suganthi velusamy wrote:
> Can u explain what pairmake() function will do and what pairadd()
> function will do. What is the difference?
Have a look at src/lib/valuepair.c:
> /*
>  *      Create a VALUE_PAIR from an ASCII attribute and value.
>  */
> VALUE_PAIR *pairmake(const char *attribute, const char *value, int operator)
> /*
>  *      Add a pair at the end of a VALUE_PAIR list.
>  */
> void pairadd(VALUE_PAIR **first, VALUE_PAIR *add)
I'm sorry, but I can't explain it better than the comments already do.
HTH,
Enrik
    
    
More information about the Freeradius-Devel
mailing list