/[radius]/radius/raddb/log-hook.rw
ViewVC logotype

Diff of /radius/raddb/log-hook.rw

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

revision 1.2 by gray, Wed Nov 26 21:10:28 2003 UTC revision 1.3 by gray, Thu Nov 27 12:21:38 2003 UTC
# Line 24  default_log_prefix(string reqtype, strin Line 24  default_log_prefix(string reqtype, strin
24    
25          result = "(" + reqtype + " " + nas + " " + (string)id + " " +          result = "(" + reqtype + " " + nas + " " + (string)id + " " +
26                   %[User-Name];                   %[User-Name];
27          if (*%[Calling-Station-Id])          if (*%[Acct-Session-Id])
28                  result = result + " CLID=" + %[Calling-Station-Id];                  result = result + + %[Acct-Session-Id];
         if (*%[Called-Station-Id])  
                 result = result + " CSID=" + %[Called-Station-Id];  
29          return result + "): ";          return result + "): ";
30  }  }
31    
32    string
33    default_log_suffix(string reqtype, string nas, integer id)
34    {
35            string result;
36            if (*%[Calling-Station-Id])
37                    result = ", CLID " + %[Calling-Station-Id];
38            else
39                    result = ", CLID unknown";      
40            return result;
41    }
42                    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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