View | Details | Raw Unified | Return to bug 549
Collapse All | Expand All

(-)canohost.c (-1 / +4 lines)
Lines 19-24 Link Here
19
#include "log.h"
19
#include "log.h"
20
#include "canohost.h"
20
#include "canohost.h"
21
21
22
int do_reverse_lookups = 1;
23
22
static void check_ip_options(int, char *);
24
static void check_ip_options(int, char *);
23
25
24
/*
26
/*
Lines 77-83 Link Here
77
79
78
	debug3("Trying to reverse map address %.100s.", ntop);
80
	debug3("Trying to reverse map address %.100s.", ntop);
79
	/* Map the IP address to a host name. */
81
	/* Map the IP address to a host name. */
80
	if (getnameinfo((struct sockaddr *)&from, fromlen, name, sizeof(name),
82
	if (do_reverse_lookups && 
83
	    getnameinfo((struct sockaddr *)&from, fromlen, name, sizeof(name),
81
	    NULL, 0, NI_NAMEREQD) != 0) {
84
	    NULL, 0, NI_NAMEREQD) != 0) {
82
		/* Host name not found.  Use ip address. */
85
		/* Host name not found.  Use ip address. */
83
#if 0
86
#if 0
(-)sshd.c (+3 lines)
Lines 804-809 Link Here
804
{
804
{
805
	extern char *optarg;
805
	extern char *optarg;
806
	extern int optind;
806
	extern int optind;
807
	extern int do_reverse_lookups;
807
	int opt, sock_in = 0, sock_out = 0, newsock, j, i, fdsetsz, on = 1;
808
	int opt, sock_in = 0, sock_out = 0, newsock, j, i, fdsetsz, on = 1;
808
	pid_t pid;
809
	pid_t pid;
809
	socklen_t fromlen;
810
	socklen_t fromlen;
Lines 928-933 Link Here
928
				fprintf(stderr, "Invalid utmp length.\n");
929
				fprintf(stderr, "Invalid utmp length.\n");
929
				exit(1);
930
				exit(1);
930
			}
931
			}
932
			if (utmp_len == 0)
933
				do_reverse_lookups = 0;
931
			break;
934
			break;
932
		case 'o':
935
		case 'o':
933
			if (process_server_config_line(&options, optarg,
936
			if (process_server_config_line(&options, optarg,

Return to bug 549