netdev
[Top] [All Lists]

Re: RFC: Redirect-Device

To: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Subject: Re: RFC: Redirect-Device
From: "David S. Miller" <davem@xxxxxxxxxxxxx>
Date: Thu, 31 Mar 2005 14:35:31 -0800
Cc: hadi@xxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <424C7813.4000101@candelatech.com>
References: <424C6089.1080507@candelatech.com> <1112303627.1073.71.camel@jzny.localdomain> <424C6B10.6030200@candelatech.com> <1112306031.1073.109.camel@jzny.localdomain> <424C7813.4000101@candelatech.com>
Sender: netdev-bounce@xxxxxxxxxxx
On Thu, 31 Mar 2005 14:22:11 -0800
Ben Greear <greearb@xxxxxxxxxxxxxxx> wrote:

> > [root@jzny root]# tc
> > Usage: tc [ OPTIONS ] OBJECT { COMMAND | help }
> > where  OBJECT := { qdisc | class | filter }
> >        OPTIONS := { -s[tatistics] | -d[etails] | -r[aw] | -b[atch] file
> > }
> 
> My personal opinion is that netlink sockets are a pain in the ass to deal
> with, and there is no way I want to try to programatically parse the tc
> input or output.
> 
> And probably not so easy to manipulate from a kernel module.
> 
> And BNF cannot be more powerful than a c/c++ program with a byte-buffer
> representing the entire ethernet frame.

So you're not even going to give Jamal's suggestion a try?

If we have the infrastructure to do what you want, we should use it,
not add "yet another way" to do something we can do already.

If adding some clean abstraction layer helps out your cause, that's
fine too.  We could even hack tc to output things in a format that
you might find easier to parse.

'tc' is very powerful, and very shamefully under-utilizied.  You're task
seems the perfect match for it's use.

<Prev in Thread] Current Thread [Next in Thread>