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

Diff of /radius/radiusd/radius.c

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

revision 1.47 by gray, Thu Jun 5 11:10:52 2003 UTC revision 1.48 by gray, Thu Jun 5 17:32:06 2003 UTC
# Line 314  radius_req_xmit(REQUEST *request, void * Line 314  radius_req_xmit(REQUEST *request, void *
314  int  int
315  radius_req_failure(int type, struct sockaddr_in *addr)  radius_req_failure(int type, struct sockaddr_in *addr)
316  {  {
317          /*FIXME: should do:          switch (type) {
318            stat_inc(acct or auth, ntohl(addr->sin_addr.s_addr), num_bad_req);*/          case R_AUTH:
319                    stat_inc(auth, ntohl(addr->sin_addr.s_addr), num_bad_req);
320                    break;
321    
322            case R_ACCT:
323                    stat_inc(acct, ntohl(addr->sin_addr.s_addr), num_bad_req);
324            }
325          return 0;          return 0;
326  }  }
327    
# Line 329  radius_respond(REQUEST *req) Line 335  radius_respond(REQUEST *req)
335                  return 1;                  return 1;
336                    
337          if (validate_client(radreq)) {          if (validate_client(radreq)) {
338                  /*FIXME: update stats */                  switch (req->type) {
339                  return -1;                  case R_AUTH:
340                            stat_inc(auth, radreq->ipaddr, num_dropped);
341                            break;
342    
343                    case R_ACCT:
344                            stat_inc(acct, radreq->ipaddr, num_dropped);
345                            break;
346    
347                    }
348                    return -1;
349          }          }
350    
351          log_open(L_MAIN);          log_open(L_MAIN);

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

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