From 6ce88ca61db102fd40059f8bd695d4aa7f2e7bfc Mon Sep 17 00:00:00 2001 From: "osdl.net!shemminger" Date: Wed, 30 Mar 2005 18:43:30 +0000 Subject: Fix from jamal 2005/03/25 04:34:05-08:00 net[shemminger]!shemminger Import patch p2_mirred (Logical change 1.181) --- tc/m_mirred.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tc/m_mirred.c b/tc/m_mirred.c index 6ade2a80..cbfea841 100644 --- a/tc/m_mirred.c +++ b/tc/m_mirred.c @@ -263,7 +263,10 @@ print_mirred(struct action_util *au,FILE * f, struct rtattr *arg) } p = RTA_DATA(tb[TCA_MIRRED_PARMS]); + /* ll_init_map(&rth); + */ + if ((dev = ll_index_to_name(p->ifindex)) == 0) { fprintf(stderr, "Cannot find device %d\n", p->ifindex); @@ -285,7 +288,7 @@ print_mirred(struct action_util *au,FILE * f, struct rtattr *arg) return 0; } -struct action_util mirred_util_util = { +struct action_util mirred_action_util = { .id = "mirred", .parse_aopt = parse_mirred, .print_aopt = print_mirred, -- cgit v1.2.3