Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
6e95aa8a
Commit
6e95aa8a
authored
Nov 29, 1998
by
Phil Blundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't do name lookups for all-zero addresses.
parent
0fbafe44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
lib/inet6.c
lib/inet6.c
+9
-1
No files found.
lib/inet6.c
View file @
6e95aa8a
...
...
@@ -3,7 +3,7 @@
* support functions for the net-tools.
* (most of it copied from lib/inet.c 1.26).
*
* Version: $Id: inet6.c,v 1.
6 1998/11/26 10:16:42
philip Exp $
* Version: $Id: inet6.c,v 1.
7 1998/11/29 13:29:44
philip Exp $
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* Copyright 1993 MicroWalt Corporation
...
...
@@ -78,6 +78,14 @@ static int INET6_rresolve(char *name, struct sockaddr_in6 *sin6, int numeric)
inet_ntop
(
AF_INET6
,
&
sin6
->
sin6_addr
,
name
,
80
);
return
(
0
);
}
if
(
IN6_IS_ADDR_UNSPECIFIED
(
&
sin6
->
sin6_addr
))
{
if
(
numeric
&
0x8000
)
strcpy
(
name
,
"default"
);
else
strcpy
(
name
,
"*"
);
return
(
0
);
}
if
((
s
=
getnameinfo
((
struct
sockaddr
*
)
sin6
,
sizeof
(
struct
sockaddr_in6
),
name
,
255
/* !! */
,
NULL
,
0
,
0
)))
{
fprintf
(
stderr
,
"getnameinfo: %s
\n
"
,
gai_strerror
(
s
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment