net: Allow to use multiple network interfaces at once
In barebox network packets always go out at the current ethernet
device and are expected to be received from the current interface.
This has some side effects. When for example an NFS is mounted when
one interface is active and the interface is changed afterwards the
NFS packets leave the new interface, but the NFS server won't be
reachable there.

Instead of changing the whole network traffic to the current ethernet
interface we now initialize a network connection with the current
network interface, but then the connection will continue to use that
interface even when the current interface is changed.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 22b878d commit be0404c21f22da2d736168b2e56a9ae583cc3e95
@Sascha Hauer Sascha Hauer authored on 14 May 2014
Showing 3 changed files
View
include/net.h
View
net/eth.c
View
net/net.c