along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: net.c,v 1.35.4.4 2000/06/25 16:01:11 guus Exp $
+ $Id: net.c,v 1.35.4.5 2000/06/25 16:20:27 guus Exp $
*/
#include "config.h"
}
p->real_ip = ntohl(ci.sin_addr.s_addr);
+ p->hostname = hostlookup(ci.sin_addr.s_addr);
p->meta_socket = sfd;
p->status.meta = 1;
p->buflen = 0;
p->last_ping_time = time(NULL);
p->want_ping = 0;
- syslog(LOG_NOTICE, _("Connection from " IP_ADDR_S ":%d"),
- IP_ADDR_V(p->real_ip), htons(ci.sin_port));
+ syslog(LOG_NOTICE, _("Connection from %s port %d"),
+ p->hostname, htons(ci.sin_port));
if(send_basic_info(p) < 0)
{
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: protocol.c,v 1.28.4.4 2000/06/25 16:01:12 guus Exp $
+ $Id: protocol.c,v 1.28.4.5 2000/06/25 16:20:27 guus Exp $
*/
#include "config.h"
{
cp
if(debug_lvl > 1)
- syslog(LOG_DEBUG, _("Sending BASIC_INFO to " IP_ADDR_S),
+ syslog(LOG_DEBUG, _("Sending BASIC_INFO to %s"),
cl->hostname);
buflen = snprintf(buffer, MAXBUFSIZE, "%d %d %lx/%lx:%x %d\n", BASIC_INFO, PROT_CURRENT, myself->vpn_ip, myself->vpn_mask, myself->port, myself->flags);
{
cp
if(debug_lvl > 1)
- syslog(LOG_DEBUG, _("Got BASIC_INFO from " IP_ADDR_S), cl->hostname);
+ syslog(LOG_DEBUG, _("Got BASIC_INFO from %s"), cl->hostname);
if(sscanf(cl->buffer, "%*d %d %lx/%lx:%hx %d", &cl->protocol_version, &cl->vpn_ip, &cl->vpn_mask, &cl->port, &cl->flags) != 5)
{