| To: | davem@xxxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 3/4] [PKT_SCHED] Dump classification result for basic classifier |
| From: | Thomas Graf <tgraf@xxxxxxx> |
| Date: | Fri, 03 Jun 2005 23:12:44 +0200 |
| Cc: | netdev@xxxxxxxxxxx |
| References: | <20050603211241.593114000@axs> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Signed-off-by: Thomas Graf <tgraf@xxxxxxx>
Index: ematch/net/sched/cls_basic.c
===================================================================
--- ematch.orig/net/sched/cls_basic.c
+++ ematch/net/sched/cls_basic.c
@@ -261,6 +261,9 @@ static int basic_dump(struct tcf_proto *
rta = (struct rtattr *) b;
RTA_PUT(skb, TCA_OPTIONS, 0, NULL);
+ if (f->res.classid)
+ RTA_PUT_U32(skb, TCA_BASIC_CLASSID, f->res.classid);
+
if (tcf_exts_dump(skb, &f->exts, &basic_ext_map) < 0 ||
tcf_em_tree_dump(skb, &f->ematches, TCA_BASIC_EMATCHES) < 0)
goto rtattr_failure;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2/4] [PKT_SCHED] Allow socket attributes to be matched on via meta ematch, Thomas Graf |
|---|---|
| Next by Date: | [PATCH 4/4] [PKT_SCHED] Fix numeric comparison in meta ematch, Thomas Graf |
| Previous by Thread: | [PATCH 2/4] [PKT_SCHED] Allow socket attributes to be matched on via meta ematch, Thomas Graf |
| Next by Thread: | [PATCH 4/4] [PKT_SCHED] Fix numeric comparison in meta ematch, Thomas Graf |
| Indexes: | [Date] [Thread] [Top] [All Lists] |