mirror of
https://github.com/openvswitch/ovs
synced 2025-09-03 15:55: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:
@@ -941,7 +941,7 @@ describe_sockaddr(struct ds *string, int fd,
|
||||
|
||||
memcpy(&sin, &ss, sizeof sin);
|
||||
ds_put_format(string, IP_FMT":%"PRIu16,
|
||||
IP_ARGS(&sin.sin_addr.s_addr), ntohs(sin.sin_port));
|
||||
IP_ARGS(sin.sin_addr.s_addr), ntohs(sin.sin_port));
|
||||
} else if (ss.ss_family == AF_UNIX) {
|
||||
struct sockaddr_un sun;
|
||||
const char *null;
|
||||
|
Reference in New Issue
Block a user