/[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.1 by gray, Sun Nov 23 19:12:13 2003 UTC revision 1.2 by gray, Wed Nov 26 21:10:28 2003 UTC
# Line 18  Line 18 
18     Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */     Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19    
20  string  string
21  show_station_ids()  default_log_prefix(string reqtype, string nas, integer id)
22  {  {
23          string clid, csid;          string result;
24    
25            result = "(" + reqtype + " " + nas + " " + (string)id + " " +
26                     %[User-Name];
27          if (*%[Calling-Station-Id])          if (*%[Calling-Station-Id])
28                  clid = %[Calling-Station-Id];                  result = result + " CLID=" + %[Calling-Station-Id];
         else  
                 clid = "Unknown";  
29          if (*%[Called-Station-Id])          if (*%[Called-Station-Id])
30                  csid = %[Called-Station-Id];                  result = result + " CSID=" + %[Called-Station-Id];
31          else          return result + "): ";
                 csid = "Unknown";  
         return "CLID " + clid + ", CSID " + csid;  
32  }  }
33                    

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

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