/[radius]/radius/radiusd/auth.c
ViewVC logotype

Diff of /radius/radiusd/auth.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.83 by gray, Wed Oct 1 19:52:40 2003 UTC revision 1.84 by gray, Tue Oct 14 07:11:18 2003 UTC
# Line 1051  sfn_ipaddr(AUTH_MACH *m) Line 1051  sfn_ipaddr(AUTH_MACH *m)
1051                  if (p = avl_find(m->req->request, DA_FRAMED_IP_ADDRESS)) {                  if (p = avl_find(m->req->request, DA_FRAMED_IP_ADDRESS)) {
1052                          /* termserver hint */                          /* termserver hint */
1053                          avl_add_pair(&m->user_reply, avp_dup(p));                          avl_add_pair(&m->user_reply, avp_dup(p));
                         if (p = avl_find(m->req->request,  
                                          DA_ADD_PORT_TO_IP_ADDRESS))  
                                 avl_add_pair(&m->user_reply, avp_dup(p));  
1054                  }                  }
1055          }          }
1056                    
         if ((p = avl_find(m->user_reply, DA_FRAMED_IP_ADDRESS)) &&  
             (tmp = avl_find(m->user_reply, DA_ADD_PORT_TO_IP_ADDRESS)) &&  
             tmp->avp_lvalue &&  
             (pp = avl_find(m->req->request, DA_NAS_PORT_ID)))  
                 /* NOTE: This only works because IP numbers are stored in  
                  * host order throughout the program.  
                  */  
                 p->avp_lvalue += pp->avp_lvalue;  
                   
         avl_delete(&m->user_reply, DA_ADD_PORT_TO_IP_ADDRESS);  
1057  }  }
1058    
1059  void  void

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.84

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26