* Add some additional debugging code to show what IP address
authorhartwick <hartwick>
Tue, 20 Mar 2001 03:01:59 +0000 (03:01 +0000)
committerhartwick <hartwick>
Tue, 20 Mar 2001 03:01:59 +0000 (03:01 +0000)
  couldn't be found in the clients list.

src/main/client.c

index 4a951bc..74524cd 100644 (file)
@@ -239,6 +239,7 @@ void client_walk(void)
 const char *client_name(uint32_t ipaddr)
 {
        RADCLIENT *cl;
+       char host_ipaddr[16];
 
        if ((cl = client_find(ipaddr)) != NULL) {
                if (cl->shortname[0])
@@ -246,6 +247,8 @@ const char *client_name(uint32_t ipaddr)
                else
                        return cl->longname;
        }
+       
+       radlog(L_ERR, "Couldn't lookup %s\n", ip_ntoa(host_ipaddr, ipaddr));
 
        /*
         *      We should NEVER reach this piece of code, as we should