summaryrefslogtreecommitdiffstats
path: root/tc
diff options
context:
space:
mode:
author6!tgraf <6!tgraf>2005-01-18 22:11:58 +0000
committer6!tgraf <6!tgraf>2005-01-18 22:11:58 +0000
commit14ee9e615939b5bd193279535a0368d5f43950e3 (patch)
tree949f5cee8e5e161f4976f13453abadca95810a1c /tc
parent87bc1f03ad3fb16f7c58becec9843378a7154495 (diff)
Use parse_rtattr_nested
(Logical change 1.129)
Diffstat (limited to 'tc')
-rw-r--r--tc/m_police.c3
-rw-r--r--tc/q_htb.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/tc/m_police.c b/tc/m_police.c
index b1911a4b..71adb594 100644
--- a/tc/m_police.c
+++ b/tc/m_police.c
@@ -318,8 +318,7 @@ print_police(struct action_util *a, FILE *f, struct rtattr *arg)
if (arg == NULL)
return 0;
- memset(tb, 0, sizeof(tb));
- parse_rtattr(tb, TCA_POLICE_MAX, RTA_DATA(arg), RTA_PAYLOAD(arg));
+ parse_rtattr_nested(tb, TCA_POLICE_MAX, arg);
if (tb[TCA_POLICE_TBF] == NULL) {
fprintf(f, "[NULL police tbf]");
diff --git a/tc/q_htb.c b/tc/q_htb.c
index abc49715..828d4b1a 100644
--- a/tc/q_htb.c
+++ b/tc/q_htb.c
@@ -246,8 +246,7 @@ static int htb_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
if (opt == NULL)
return 0;
- memset(tb, 0, sizeof(tb));
- parse_rtattr(tb, TCA_HTB_RTAB, RTA_DATA(opt), RTA_PAYLOAD(opt));
+ parse_rtattr_nested(tb, TCA_HTB_RTAB, opt);
if (tb[TCA_HTB_PARMS]) {