Skip to contentSkip to conversation

I not find in the kernel code the code of this command

LARTC Franco 2 participants 3 messages Sep 1, 2006

lore
Share & tools
lore

Franco

author
#0 lore raw

Hi!,
My problem is this:
I'm searching, in kernel code, the code that implement thi command:

tc filter add dev eth2 parent ffff: protocol ip prio 1 u32 match ip src 0.0.0.0/0 police rate $1 burst $2 drop flowid :1

I thought that this code was police.c but seem that it isn't i must implement a proc file in the code and recompiling the kernel.

Please send eventual response to my mail address ([email protected])

Thanks

Franco

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw
Quoted 11 lines · Franco

Hi!,
My problem is this:
I'm searching, in kernel code, the code that implement thi command:

tc filter add dev eth2 parent ffff: protocol ip prio 1 u32 match ip src 0.0.0.0/0 police rate $1 burst $2 drop flowid :1

I thought that this code was police.c but seem that it isn't i must implement a proc file in the code and recompiling the kernel.

Please send eventual response to my mail address ([email protected])

Quoted 8 lines

Thanks

Franco

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

In 2.6.17.11 it should be in net/sched/act_police.c .

Andreas
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

author
#2 lore raw
In reply to Franco

very thanks for the help!
But i'm using linux-2.6.11-6MDK and in net/sched there isn't act_police.c

Quoted 31 lines
Quoted 13 lines · Franco

Hi!,
My problem is this:
I'm searching, in kernel code, the code that implement thi command:

tc filter add dev eth2 parent ffff: protocol ip prio 1 u32 match ip src 0.0.0.0/0 police rate $1 burst $2 drop flowid :1

I thought that this code was police.c but seem that it isn't i must implement a proc file in the code and recompiling the kernel.

Please send eventual response to my mail address
([email protected])

Quoted 8 lines

Thanks

Franco

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

In 2.6.17.11 it should be in net/sched/act_police.c .

Andreas
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

Quoted 6 lines

__________ Informazione NOD32 1.1607 (20060619) __________

Questo messaggio è stato controllato dal Sistema Antivirus NOD32
http://www.nod32.it

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc