Hi there,
I have an embedded device running linux which has 2 ethernet interfaces (eth0, eth1).
I need to decouple the linux tcp/ip stack from eth1 so that I can access the drivers for this device directly. Then I will have an external tcp/ip stack using eth1.
I am just doing some preliminary information gathering on the cleanest way to do this.
My first thought was to use raw sockets to do this, but i feel that this may cause some issues and that accessing eth1 directly would be cleaner than:
external stack->linux stack(raw sockets)->eth1
Does anyone know how to:
1) stop the linux stack from accessing eth1? Is it as simple as "ifdown eth1"?
2)find the API to use to access eth1 directly? I looked at using a library like libpcap, but it only supports reading packets from the device and not sending.
Thanks,
Kyle