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
9c98affb
Commit
9c98affb
authored
Aug 24, 1999
by
Bernd Eckenfels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clear struct to get all matching v6 addresses in ifconfig
(thanks to Ulrich Drepper)
parent
0e3397e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lib/inet6.c
lib/inet6.c
+3
-1
No files found.
lib/inet6.c
View file @
9c98affb
...
...
@@ -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.
7 1998/11/29 13:29:44 philip
Exp $
* Version: $Id: inet6.c,v 1.
8 1999/08/24 16:47:24 ecki
Exp $
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* Copyright 1993 MicroWalt Corporation
...
...
@@ -11,6 +11,7 @@
* Modified:
*960808 {0.01} Frank Strauss : adapted for IPv6 support
*980701 {0.02} Arnaldo C. Melo: GNU gettext instead of catgets
*990824 Bernd Eckenfels: clear members for selecting v6 address
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
...
...
@@ -48,6 +49,7 @@ static int INET6_resolve(char *name, struct sockaddr_in6 *sin6)
struct
addrinfo
req
,
*
ai
;
int
s
;
memset
(
&
req
,
'\0'
,
sizeof
req
);
req
.
ai_family
=
AF_INET6
;
if
((
s
=
getaddrinfo
(
name
,
NULL
,
&
req
,
&
ai
)))
{
fprintf
(
stderr
,
"getaddrinfo: %s: %s
\n
"
,
name
,
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