LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Passing info from MAC to network layer (cross layer) (https://www.linuxquestions.org/questions/programming-9/passing-info-from-mac-to-network-layer-cross-layer-693838/)

tassadaque 12-30-2008 06:43 AM

Passing info from MAC to network layer (cross layer)
 
HI
I want to implement a cross layer approach. i want to pass the network information such as delay from the MAC layer to Network layer. Can you tell me the way i am new to this. i am using linux (fedora). I think some system call will do the trick. Correct me if i am wrong. Any help in this regard is greatly appreciated.(i want to implement QoS matrices)

theNbomr 12-31-2008 02:22 PM

The MAC is not a 'layer' per se, but part of the link layer. In ethernet (assuming that is what you are referring to), the classical concept of physical layer and data link layer are more or less combined. One passes information to the link layer by writing data and control words to the appropriate registers in the hardware. This is the domain of a device driver. You can do this from a userspace application, iff you know how to program the hardware you have available, and if you have root privileges.
--- rod.


All times are GMT -5. The time now is 02:04 PM.