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
ac2fc2df
Commit
ac2fc2df
authored
Jan 18, 2005
by
8!tgraf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use parse_rtattr_nested
(Logical change 1.129)
parent
2af5c3d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
10 deletions
+4
-10
tc/f_u32.c
tc/f_u32.c
+1
-3
tc/m_action.c
tc/m_action.c
+2
-5
tc/q_hfsc.c
tc/q_hfsc.c
+1
-2
No files found.
tc/f_u32.c
View file @
ac2fc2df
...
...
@@ -956,9 +956,7 @@ static int u32_print_opt(struct filter_util *qu, FILE *f, struct rtattr *opt, __
if
(
opt
==
NULL
)
return
0
;
memset
(
tb
,
0
,
sizeof
(
tb
));
if
(
opt
)
parse_rtattr
(
tb
,
TCA_U32_MAX
,
RTA_DATA
(
opt
),
RTA_PAYLOAD
(
opt
));
parse_rtattr_nested
(
tb
,
TCA_U32_MAX
,
opt
);
if
(
handle
)
{
SPRINT_BUF
(
b1
);
...
...
tc/m_action.c
View file @
ac2fc2df
...
...
@@ -229,8 +229,7 @@ tc_print_one_action(FILE * f, struct rtattr *arg)
if
(
arg
==
NULL
)
return
-
1
;
memset
(
tb
,
0
,
sizeof
(
tb
));
parse_rtattr
(
tb
,
TCA_ACT_MAX
,
RTA_DATA
(
arg
),
RTA_PAYLOAD
(
arg
));
parse_rtattr_nested
(
tb
,
TCA_ACT_MAX
,
arg
);
if
(
tb
[
TCA_ACT_KIND
]
==
NULL
)
{
fprintf
(
stderr
,
"NULL Action!
\n
"
);
return
-
1
;
...
...
@@ -272,8 +271,7 @@ tc_print_action(FILE * f, const struct rtattr *arg)
if
(
arg
==
NULL
)
return
0
;
memset
(
tb
,
0
,
sizeof
(
tb
));
parse_rtattr
(
tb
,
TCA_ACT_MAX_PRIO
,
RTA_DATA
(
arg
),
RTA_PAYLOAD
(
arg
));
parse_rtattr_nested
(
tb
,
TCA_ACT_MAX_PRIO
,
arg
);
if
(
tab_flush
&&
NULL
!=
tb
[
0
]
&&
NULL
==
tb
[
1
])
{
int
ret
=
tc_print_one_action
(
f
,
tb
[
0
]);
...
...
@@ -310,7 +308,6 @@ static int do_print_action(const struct sockaddr_nl *who,
return
-
1
;
}
memset
(
tb
,
0
,
sizeof
(
tb
));
parse_rtattr
(
tb
,
TCAA_MAX
,
TA_RTA
(
t
),
len
);
if
(
NULL
==
tb
[
TCA_ACT_TAB
])
{
...
...
tc/q_hfsc.c
View file @
ac2fc2df
...
...
@@ -239,8 +239,7 @@ hfsc_print_class_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
if
(
opt
==
NULL
)
return
0
;
memset
(
tb
,
0
,
sizeof
(
tb
));
parse_rtattr
(
tb
,
TCA_HFSC_MAX
,
RTA_DATA
(
opt
),
RTA_PAYLOAD
(
opt
));
parse_rtattr_nested
(
tb
,
TCA_HFSC_MAX
,
opt
);
if
(
tb
[
TCA_HFSC_RSC
])
{
if
(
RTA_PAYLOAD
(
tb
[
TCA_HFSC_RSC
])
<
sizeof
(
*
rsc
))
...
...
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