I need to exchange data between an MPC860 processor and other components
over an HDLC bus. No protocol is needed on top of that; from an application
I need to be able to send and receive HDLC packets. I have some working
code. On another mailing-list I asked whether I should pack it as a char or
a network driver.
Somebody who advised me to write a network driver told me to pick a type
from linux/if_ether.h (like ETH_P_WAN_PPP) and use raw sockets. He also told
me that this question would better fit on the netdev mailing list...
I am still confused about what parameters I exactly need to use when opening
a socket and how the OS will know what network driver to use. As far as I
know for Ethernet adapters ifconfig is used to map reachable IP-addresses to
adapters. Until now I am unsuccessful in finding some sample-code or
document that gives me enough information. Every example/document is so
Who can help me?