i not find in the kernel code the code of this command
Subsystems (2)
Hi!,
I'm not able to subscrive at this list. My server mail don't send the mail and consider it a spam mail... For this, please send eventual response to this mail address ([email protected])
The 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.
Thanks
Franco
Quoted 3 lines · Franco
I thought that this code was
police.cbut seem that it isn't i must implement a proc file in the code and recompiling the kernel.
I'm not sure I understand your question. Please tell me if I answer wrong!
The code is under net/sched in the source tree. The main file is act_police.c but it is in use elsewhere as well. grep for POLICE.
To build the code you need to alter your kernel options under 'make menuconfig' Networking, Networking Options, Qos and/or fair queueing, Actions must be selected and then Traffic Police.
I hope this helps.
Ian
Signature · 10 lines
Ian McDonald Web: http://wand.net.nz/~iam4 Blog: http://imcdnzl.blogspot.com WAND Network Research Group Department of Computer Science University of Waikato New Zealand -- VGER BF report: U 0.5
thanks for your response!
Yes, The code is under net/sched in the source tree.
The file act_police.c in the directoy net/sched don't exist. there is police.c that have a very similar code act_police.c (that i have found on internet)
however i have doon 'make menuconfig', i have gone to traffic policing and it is selectionated but there is only the "*". there isn't "M" that means "modularized featured" and i can't insert M in traffic policing you have help me very much with this last information. But, at this point, if i want create a proc file in police.c, therefore modificate the kernel, i must install on my pc another version on linux. It is exact? Thanks
bye
Franco
----- Original Message -----
From: "Ian McDonald" <[email protected]>
To: "Franco" <[email protected]>
Cc: <[email protected]>
Sent: Saturday, September 02, 2006 2:04 AM
Subject: Re: i not find in the kernel code the code of this command
Quoted 31 lines · Franco
Quoted 3 lines
I thought that this code was
police.cbut seem that it isn't i must implement a proc file in the code and recompiling the kernel.I'm not sure I understand your question. Please tell me if I answer wrong!
The code is under net/sched in the source tree. The main file is
act_police.cbut it is in use elsewhere as well. grep for POLICE.To build the code you need to alter your kernel options under 'make menuconfig' Networking, Networking Options, Qos and/or fair queueing, Actions must be selected and then Traffic Police.
I hope this helps.
Ian
Signature · 12 lines
Ian McDonald Web: http://wand.net.nz/~iam4 Blog: http://imcdnzl.blogspot.com WAND Network Research Group Department of Computer Science University of Waikato New Zealand __________ Informazione NOD32 1.1607 (20060619) __________ Questo messaggio è stato controllato dal Sistema Antivirus NOD32 http://www.nod32.it
Signature · 1 line
VGER BF report: U 0.502266
Quoted 5 lines · Franco
thanks for your response!
Yes, The code is under net/sched in the source tree.
The fileact_police.cin the directoy net/sched don't exist. there ispolice.cthat have a very similar codeact_police.c(that i have found on internet)
Go to http://kernel.org and download a recent kernel.
Quoted 2 lines
if i want create a proc file in
police.c, therefore modificate the kernel, i must install on my pc another version on linux. It is exact?
As I said above get a newer version.
Signature · 7 lines
Ian McDonald Web: http://wand.net.nz/~iam4 Blog: http://imcdnzl.blogspot.com WAND Network Research Group Department of Computer Science University of Waikato New Zealand