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
87bc1f03
Commit
87bc1f03
authored
Jan 18, 2005
by
5!tgraf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tb buffer initialization is now done in the parser
(Logical change 1.129)
parent
753fca4f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
8 deletions
+0
-8
ip/ipneigh.c
ip/ipneigh.c
+0
-1
ip/iproute.c
ip/iproute.c
+0
-6
misc/arpd.c
misc/arpd.c
+0
-1
No files found.
ip/ipneigh.c
View file @
87bc1f03
...
...
@@ -222,7 +222,6 @@ int print_neigh(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
(
r
->
ndm_family
!=
AF_DECnet
))
return
0
;
memset
(
tb
,
0
,
sizeof
(
tb
));
parse_rtattr
(
tb
,
NDA_MAX
,
NDA_RTA
(
r
),
n
->
nlmsg_len
-
NLMSG_LENGTH
(
sizeof
(
*
r
)));
if
(
tb
[
NDA_DST
])
{
...
...
ip/iproute.c
View file @
87bc1f03
...
...
@@ -190,8 +190,6 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
if
(
filter
.
rprefsrc
.
family
&&
r
->
rtm_family
!=
filter
.
rprefsrc
.
family
)
return
0
;
memset
(
tb
,
0
,
sizeof
(
tb
));
parse_rtattr
(
tb
,
RTA_MAX
,
RTM_RTA
(
r
),
len
);
memset
(
&
dst
,
0
,
sizeof
(
dst
));
...
...
@@ -464,8 +462,6 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
unsigned
mxlock
=
0
;
struct
rtattr
*
mxrta
[
RTAX_MAX
+
1
];
memset
(
mxrta
,
0
,
sizeof
(
mxrta
));
parse_rtattr
(
mxrta
,
RTAX_MAX
,
RTA_DATA
(
tb
[
RTA_METRICS
]),
RTA_PAYLOAD
(
tb
[
RTA_METRICS
]));
if
(
mxrta
[
RTAX_LOCK
])
...
...
@@ -534,7 +530,6 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
}
else
fprintf
(
fp
,
"%s
\t
nexthop"
,
_SL_
);
if
(
nh
->
rtnh_len
>
sizeof
(
*
nh
))
{
memset
(
tb
,
0
,
sizeof
(
tb
));
parse_rtattr
(
tb
,
RTA_MAX
,
RTNH_DATA
(
nh
),
nh
->
rtnh_len
-
sizeof
(
*
nh
));
if
(
tb
[
RTA_GATEWAY
])
{
fprintf
(
fp
,
" via %s "
,
...
...
@@ -1340,7 +1335,6 @@ int iproute_get(int argc, char **argv)
return
-
1
;
}
memset
(
tb
,
0
,
sizeof
(
tb
));
parse_rtattr
(
tb
,
RTA_MAX
,
RTM_RTA
(
r
),
len
);
if
(
tb
[
RTA_PREFSRC
])
{
...
...
misc/arpd.c
View file @
87bc1f03
...
...
@@ -329,7 +329,6 @@ int do_one_request(struct nlmsghdr *n)
!
(
ndm
->
ndm_state
&~
NUD_NOARP
))
return
0
;
memset
(
tb
,
0
,
sizeof
(
tb
));
parse_rtattr
(
tb
,
NDA_MAX
,
NDA_RTA
(
ndm
),
len
);
if
(
!
tb
[
NDA_DST
])
...
...
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