net: Pick network device based on IP settings
The IP/netmask/gateway settings contain all informations
needed to pick the correct network device. This patch
adds support for that and makes specifying the "current"
network interface using the ethact command unnecessary.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 528298b commit 4362c73ac768ad7218982fc1ccf8ae04285c27d1
@Sascha Hauer Sascha Hauer authored on 3 Feb 2011
Showing 2 changed files
View
include/net.h
View
net/net.c