net: if: Separate IP address configuration from net_if

Move IP address settings from net_if to separate structs.
This is needed for VLAN support.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2018-01-11 16:06:53 +02:00 committed by Anas Nashif
commit 47dafffb67
38 changed files with 947 additions and 559 deletions

View file

@ -676,7 +676,7 @@ static int eth_net_tx(struct net_if *iface, struct net_pkt *pkt)
SYS_LOG_DBG("pkt %p (len %u)", pkt, len);
ret = eth_enc28j60_tx(iface->dev, pkt, len);
ret = eth_enc28j60_tx(net_if_get_device(iface), pkt, len);
if (ret == 0) {
net_pkt_unref(pkt);
}