* Re: [LARTC] Clearing all filters
@ 2001-07-11 16:58 Jose Miguel Varet
2001-07-11 17:02 ` Michael T. Babcock
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jose Miguel Varet @ 2001-07-11 16:58 UTC (permalink / raw)
To: lartc
easy... you can erase your tc config at the root level :
# tc qdisc del $device root
That will erase the main qdisc discipline in $device. Since all classes,
cbqs/sfqs , filters, etc. hang from that one , all of them will be removed
too.
Greets,
Jose Miguel Varet
Tech Dept. Chief
ATT, S.L.
----- Original Message -----
From: "Michael T. Babcock" <mbabcock@fibrespeed.net>
To: <lartc@mailman.ds9a.nl>
Sent: Wednesday, July 11, 2001 7:02 PM
Subject: [LARTC] Clearing all filters
> I'd like to be able to wipe out all classes and/or filters (like doing
> an ipchains -F for packet filter rules) quickly at the beginning of my
> scripts. Is there a way to do this that I'm not aware of?
>
> --
> Michael T. Babcock
> CTO, FibreSpeed
>
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
http://ds9a.nl/2.4Routing/
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LARTC] Clearing all filters
2001-07-11 16:58 [LARTC] Clearing all filters Jose Miguel Varet
@ 2001-07-11 17:02 ` Michael T. Babcock
2001-07-11 17:47 ` James A. Crippen
2001-07-11 18:06 ` Michael T. Babcock
2 siblings, 0 replies; 4+ messages in thread
From: Michael T. Babcock @ 2001-07-11 17:02 UTC (permalink / raw)
To: lartc
I'd like to be able to wipe out all classes and/or filters (like doing
an ipchains -F for packet filter rules) quickly at the beginning of my
scripts. Is there a way to do this that I'm not aware of?
--
Michael T. Babcock
CTO, FibreSpeed
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] Clearing all filters
2001-07-11 16:58 [LARTC] Clearing all filters Jose Miguel Varet
2001-07-11 17:02 ` Michael T. Babcock
@ 2001-07-11 17:47 ` James A. Crippen
2001-07-11 18:06 ` Michael T. Babcock
2 siblings, 0 replies; 4+ messages in thread
From: James A. Crippen @ 2001-07-11 17:47 UTC (permalink / raw)
To: lartc
On Wed, 11 Jul 2001, Michael T. Babcock wrote:
> I'd like to be able to wipe out all classes and/or filters (like doing
> an ipchains -F for packet filter rules) quickly at the beginning of my
> scripts. Is there a way to do this that I'm not aware of?
You can do so by deleting the root qdisc for each device. Thus, supposing
some configuration similar to the following,
qdisc cbq 1: dev eth1 rate 100Mbit (bounded,isolated) prio no-transmit
qdisc cbq 2: dev eth2 rate 100Mbit (bounded,isolated) prio no-transmit
you can delete the root qdisc from each device with this command:
# tc qdisc del dev eth1 root
# tc qdisc del dev eth2 root
Everything that depends on the root qdisc (which, IIRC, is indeed
everything) will be deleted when the root qdisc is deleted.
HTH, HAND
'james
--
James A. Crippen <james@unlambda.com> ,-./-. Anchorage, Alaska,
Lambda Unlimited: Recursion 'R' Us | |/ | USA, 61.2069 N, 149.766 W,
Y = \f.(\x.f(xx)) (\x.f(xx)) | |\ | Earth, Sol System,
Y(F) = F(Y(F)) \_,-_/ Milky Way.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] Clearing all filters
2001-07-11 16:58 [LARTC] Clearing all filters Jose Miguel Varet
2001-07-11 17:02 ` Michael T. Babcock
2001-07-11 17:47 ` James A. Crippen
@ 2001-07-11 18:06 ` Michael T. Babcock
2 siblings, 0 replies; 4+ messages in thread
From: Michael T. Babcock @ 2001-07-11 18:06 UTC (permalink / raw)
To: lartc
Jose Miguel Varet wrote:
>easy... you can erase your tc config at the root level :
>
># tc qdisc del $device root
>
>That will erase the main qdisc discipline in $device. Since all classes,
>cbqs/sfqs , filters, etc. hang from that one , all of them will be removed
>too.
>
I was not aware that these dependancies were well-maintained in
kernel-space. Thank-you.
--
Michael T. Babcock
CTO, FibreSpeed
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-07-11 18:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-11 16:58 [LARTC] Clearing all filters Jose Miguel Varet
2001-07-11 17:02 ` Michael T. Babcock
2001-07-11 17:47 ` James A. Crippen
2001-07-11 18:06 ` Michael T. Babcock
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.