The main project that me and my colleague designed for Operating Systems course ( Spring 2018 ) - TA of OS
Project Description ( summary ):
The goal of this project is to gather information about incoming and outgoing packets in system. ( some kind of packet capturing )
The desired informations are :
Phase one :
Phase three :
Performance comparsion of kernel module and system call ( the first two phases ). DOWNLOAD PROJECT DESCRIPTIONS IN DETAIL
Approach Taken for answer:
All of the desired informations are in sk_buff data structure.
my approach was to clone sk_buff from driver, right before the driver ( here : e1000 ) wants to pass the packet to the next network layer handler ( application or the NIC ). with this approach i will have a clone for each packet.
now that i have the information the rest is easy, just copy the desired information from the sk_buff to the output buffer and copy from there to user space.
درباره این سایت