How to create socket over PPP connection and NOT over ethernet
I have a system where there are two active physical network connections: Ethernet (eth0) and PPP over a USB serial device. I want to create a socket using the PPP connection. How do I "ignore" the ethernet device and only use the ttyUSBx device for the socket connection. C/C++ application using Eclipse as the dev environment. Thanks much in advance.
Re: How to create socket over PPP connection and NOT over ethernet
Found the answer to this. After creating the socket have to bind the raw socket to an interface using setsockopt() and then call bind() to bind to an address.