To create a proc file /proc/pkt_cntr

Use a module to create a proc file /proc/pkt_cntr which periodically reports on the number of

incoming packets,

outgoing packets,

merges of input_pkt_queue with process_queue of softnet_data, where a merge takes place when the number of packets processed off of process_queue is over quota () or /proc/sys/net/core/netdev_budget. See process_backlog for quota and the merge process.

enque, dequeue, and requeue cycles, where the packet(s) are requeued for softirq to try at a later time.

Use softnet_data->input_pkt_queue to count incoming packets.

Use softnet_data->output_queue to count outgoing packets.

When counting, traverse the skbh list. Do not use qlen.

Include your code in the tgz file to show that you actually traversed the list to count the number of packets.

Report the numbers periodically.

Open a browser and visit some sites to increase the packet traffic for a few minutes. You will need some significant net activities to generate a visible number of packets. Simple surfing may not generate visible packet traffic.

Consider using ab (apache bench to generate traffic) or write a pair of client/server programs to simulate sending/receiving packets.

Skills: Linux

See more: Custom pdf of iPad file to create payments, how to create program that will produce student result using php pdf file, how to create a digitized embroidery design file, proc file kernel module, proc entry in linux, create a file in proc, proc read, proc write example, procfs example, linux kernel proc file example, proc file system write, failed to create dump file error 183 company of heroes, need to create excel file using, csv lister software to create csv file and xls file 3, csv lister software to create csv file and xls file -- 3, vba create file, aspnet create file, create file xml php, php create file xml, create file java hebrew

About the Employer:
( 0 reviews ) United States

Project ID: #16739442

Awarded to:


Hi, I am a multimedia expert with Audio Video encoding/decoding experience in Linux/Android Domain. Delivered several projects on RPI, You can see my history. Actually working on a project right now which uses libcu More

$100 USD in 7 days
(4 Reviews)