Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
49ed70b4
Commit
49ed70b4
authored
Apr 07, 1999
by
Martin Mareš
Browse files
Portability fixes.
parent
23b1539b
Changes
1
Hide whitespace changes
Inline
Side-by-side
sysdep/unix/krt-iface.c
View file @
49ed70b4
...
...
@@ -7,6 +7,7 @@
*/
#include
<string.h>
#include
<sys/types.h>
#include
<sys/socket.h>
#include
<netinet/in.h>
#include
<net/if.h>
...
...
@@ -39,8 +40,8 @@ scan_ifs(struct ifreq *r, int cnt)
for
(
cnt
/=
sizeof
(
struct
ifreq
);
cnt
;
cnt
--
,
r
++
)
{
bzero
(
&
i
,
sizeof
(
i
));
DBG
(
"%s
\n
"
,
r
->
ifr_
ifrn
.
ifrn_
name
);
strncpy
(
i
.
name
,
r
->
ifr_
ifrn
.
ifrn_
name
,
sizeof
(
i
.
name
)
-
1
);
DBG
(
"%s
\n
"
,
r
->
ifr_name
);
strncpy
(
i
.
name
,
r
->
ifr_name
,
sizeof
(
i
.
name
)
-
1
);
get_sockaddr
((
struct
sockaddr_in
*
)
&
r
->
ifr_addr
,
&
i
.
ip
,
NULL
);
if
(
ipa_nonzero
(
i
.
ip
))
{
...
...
Write
Preview
Supports
Markdown
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