artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2c8662
)
ndp -n -d <addr> does dns lookups, even with -n. it should not.
author
benno
<benno@openbsd.org>
Fri, 23 Oct 2015 15:47:54 +0000
(15:47 +0000)
committer
benno
<benno@openbsd.org>
Fri, 23 Oct 2015 15:47:54 +0000
(15:47 +0000)
found through pledge. ok deraadt@
usr.sbin/ndp/ndp.c
patch
|
blob
|
history
diff --git
a/usr.sbin/ndp/ndp.c
b/usr.sbin/ndp/ndp.c
index
881d897
..
4ce5cf6
100644
(file)
--- a/
usr.sbin/ndp/ndp.c
+++ b/
usr.sbin/ndp/ndp.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ndp.c,v 1.6
2 2015/08/23 14:12:05 naddy
Exp $ */
+/* $OpenBSD: ndp.c,v 1.6
3 2015/10/23 15:47:54 benno
Exp $ */
/* $KAME: ndp.c,v 1.101 2002/07/17 08:46:33 itojun Exp $ */
/*
@@
-488,6
+488,8
@@
delete(char *host)
bzero(&hints, sizeof(hints));
hints.ai_family = AF_INET6;
+ if (nflag)
+ hints.ai_flags = AI_NUMERICHOST;
gai_error = getaddrinfo(host, NULL, &hints, &res);
if (gai_error) {
fprintf(stderr, "ndp: %s: %s\n", host,