mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
packets: Change IP_ARGS interface to take an ovs_be32 instead of a pointer.
An ovs_be32 is a more obvious way to represent an IP address than a pointer to one. It is also more type-safe, especially since "sparse" is able to check that the argument is in network byte order. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
@@ -2338,7 +2338,7 @@ netdev_linux_arp_lookup(const struct netdev *netdev,
|
||||
memcpy(mac, r.arp_ha.sa_data, ETH_ADDR_LEN);
|
||||
} else if (retval != ENXIO) {
|
||||
VLOG_WARN_RL(&rl, "%s: could not look up ARP entry for "IP_FMT": %s",
|
||||
netdev_get_name(netdev), IP_ARGS(&ip), strerror(retval));
|
||||
netdev_get_name(netdev), IP_ARGS(ip), strerror(retval));
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
Reference in New Issue
Block a user