Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
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
iproute2
Commits
dd50247d
Commit
dd50247d
authored
May 15, 2014
by
Jiri Pirko
Committed by
Stephen Hemminger
Jun 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iproute2: arpd: use ll_addr_a2n and ll_addr_n2a
Signed-off-by:
Jiri Pirko
<
jiri@resnulli.us
>
parent
aeb199d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
misc/arpd.c
misc/arpd.c
+3
-3
No files found.
misc/arpd.c
View file @
dd50247d
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include "libnetlink.h"
#include "libnetlink.h"
#include "utils.h"
#include "utils.h"
#include "rt_names.h"
int
resolve_hosts
;
int
resolve_hosts
;
...
@@ -721,8 +722,7 @@ int main(int argc, char **argv)
...
@@ -721,8 +722,7 @@ int main(int argc, char **argv)
goto
do_abort
;
goto
do_abort
;
}
}
dbdat
.
data
=
hexstring_a2n
(
macbuf
,
b1
,
6
);
if
(
ll_addr_a2n
((
char
*
)
b1
,
6
,
macbuf
)
!=
6
)
if
(
dbdat
.
data
==
NULL
)
goto
do_abort
;
goto
do_abort
;
dbdat
.
size
=
6
;
dbdat
.
size
=
6
;
...
@@ -747,7 +747,7 @@ int main(int argc, char **argv)
...
@@ -747,7 +747,7 @@ int main(int argc, char **argv)
printf
(
"%-8d %-15s %s
\n
"
,
printf
(
"%-8d %-15s %s
\n
"
,
key
->
iface
,
key
->
iface
,
inet_ntoa
(
*
(
struct
in_addr
*
)
&
key
->
addr
),
inet_ntoa
(
*
(
struct
in_addr
*
)
&
key
->
addr
),
hexstring_n2a
(
dbdat
.
data
,
6
,
b1
,
18
));
ll_addr_n2a
(
dbdat
.
data
,
6
,
ARPHRD_ETHER
,
b1
,
18
));
}
else
{
}
else
{
printf
(
"%-8d %-15s FAILED: %dsec ago
\n
"
,
printf
(
"%-8d %-15s FAILED: %dsec ago
\n
"
,
key
->
iface
,
key
->
iface
,
...
...
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