diff --git a/net/arp/arp_out.c b/net/arp/arp_out.c index b5d5af755f..ac8f6651be 100644 --- a/net/arp/arp_out.c +++ b/net/arp/arp_out.c @@ -207,7 +207,7 @@ void arp_out(FAR struct net_driver_s *dev) * destination address when determining the MAC address. */ - netdev_router(dev, destipaddr, &ipaddr); + netdev_ipv4_router(dev, destipaddr, &ipaddr); #else /* Use the device's default router IP address instead of the * destination address when determining the MAC address. diff --git a/net/arp/arp_send.c b/net/arp/arp_send.c index 1ff7162786..0bbcf382f2 100644 --- a/net/arp/arp_send.c +++ b/net/arp/arp_send.c @@ -264,7 +264,7 @@ int arp_send(in_addr_t ipaddr) * destination address when determining the MAC address. */ - netdev_router(dev, ipaddr, &dripaddr); + netdev_ipv4_router(dev, ipaddr, &dripaddr); #else /* Use the device's default router IP address instead of the * destination address when determining the MAC address.