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

(-)mountd.c (-4 / +9 lines)
Lines 240-245 Link Here
240
int dolog = 0;
240
int dolog = 0;
241
int got_sighup = 0;
241
int got_sighup = 0;
242
int xcreated = 0;
242
int xcreated = 0;
243
int ip_only = 0;
243
244
244
char *svcport_str = NULL;
245
char *svcport_str = NULL;
245
static int	mallocd_svcport = 0;
246
static int	mallocd_svcport = 0;
Lines 312-318 Link Here
312
	else
313
	else
313
		close(s);
314
		close(s);
314
315
315
	while ((c = getopt(argc, argv, "2deh:lnop:rS")) != -1)
316
	while ((c = getopt(argc, argv, "2deh:ilnop:rS")) != -1)
316
		switch (c) {
317
		switch (c) {
317
		case '2':
318
		case '2':
318
			force_v2 = 1;
319
			force_v2 = 1;
Lines 329-334 Link Here
329
		case 'd':
330
		case 'd':
330
			debug = debug ? 0 : 1;
331
			debug = debug ? 0 : 1;
331
			break;
332
			break;
333
		case 'i':
334
			ip_only = 1;
335
			break;
332
		case 'l':
336
		case 'l':
333
			dolog = 1;
337
			dolog = 1;
334
			break;
338
			break;
Lines 924-930 Link Here
924
usage(void)
928
usage(void)
925
{
929
{
926
	fprintf(stderr,
930
	fprintf(stderr,
927
		"usage: mountd [-2] [-d] [-e] [-l] [-n] [-p <port>] [-r] "
931
		"usage: mountd [-2] [-d] [-e] [-i] [-l] [-n] [-p <port>] [-r] "
928
		"[-S] [-h <bindip>] [export_file ...]\n");
932
		"[-S] [-h <bindip>] [export_file ...]\n");
929
	exit(1);
933
	exit(1);
930
}
934
}
Lines 963-970 Link Here
963
		syslog(LOG_ERR, "request from unknown address family");
967
		syslog(LOG_ERR, "request from unknown address family");
964
		return;
968
		return;
965
	}
969
	}
966
	lookup_failed = getnameinfo(saddr, saddr->sa_len, host, sizeof host, 
970
	if (!ip_only)
967
	    NULL, 0, 0);
971
		lookup_failed = getnameinfo(saddr, saddr->sa_len, host,
972
		    sizeof host, NULL, 0, 0);
968
	getnameinfo(saddr, saddr->sa_len, numerichost,
973
	getnameinfo(saddr, saddr->sa_len, numerichost,
969
	    sizeof numerichost, NULL, 0, NI_NUMERICHOST);
974
	    sizeof numerichost, NULL, 0, NI_NUMERICHOST);
970
	switch (rqstp->rq_proc) {
975
	switch (rqstp->rq_proc) {

Return to bug 194424