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:
parent
bdc5c72498
commit
47dafffb67
38 changed files with 947 additions and 559 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue