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
704788c7
Commit
704788c7
authored
Apr 21, 1999
by
Phil Blundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 2.0 compatibility
parent
68324d5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lib/interface.c
lib/interface.c
+2
-1
No files found.
lib/interface.c
View file @
704788c7
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
10/1998 partly rewriten by Andi Kleen to support an interface list.
10/1998 partly rewriten by Andi Kleen to support an interface list.
I don't claim that the list operations are efficient @).
I don't claim that the list operations are efficient @).
$Id: interface.c,v 1.
3 1999/04/20 13:31:46
philip Exp $
$Id: interface.c,v 1.
4 1999/04/21 09:30:32
philip Exp $
*/
*/
#include "config.h"
#include "config.h"
...
@@ -401,6 +401,7 @@ int if_fetch(struct interface *ife)
...
@@ -401,6 +401,7 @@ int if_fetch(struct interface *ife)
fd
=
get_socket_for_af
(
AF_INET
);
fd
=
get_socket_for_af
(
AF_INET
);
if
(
fd
>=
0
)
{
if
(
fd
>=
0
)
{
strcpy
(
ifr
.
ifr_name
,
ifname
);
strcpy
(
ifr
.
ifr_name
,
ifname
);
ifr
.
ifr_addr
.
sa_family
=
AF_INET
;
if
(
ioctl
(
fd
,
SIOCGIFADDR
,
&
ifr
)
==
0
)
{
if
(
ioctl
(
fd
,
SIOCGIFADDR
,
&
ifr
)
==
0
)
{
ife
->
has_ip
=
1
;
ife
->
has_ip
=
1
;
ife
->
addr
=
ifr
.
ifr_addr
;
ife
->
addr
=
ifr
.
ifr_addr
;
...
...
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