Read/Write on link layer without using network driver

M

mhajian

Guest
Hello all,
I have compiled a Linux without any network driver for data encryption propose. I want to read and write from link layer without using network driver, so I think I should write my own module. Here is my question, How can I write a module to do that? I have read some text about SKB structure but I don't know how can i use it.
I have an embedded Cortex A5 board with two Ethernet port, further more there are 2 PC which connected to my board through Ethernet. I want to receive data from one PC, encrypt it and send it to another.
 


Hello,
I have read some texts which tell about pcap library for capturing data from network, but when network is down, does this library work?
How we can write a packet using pcap through network?

please help me ...
 

Members online


Top