diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-09-12 18:45:54 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-09-24 15:08:19 +0200 |
commit | 6982b488e03b8e29e186f0c54cf5f80438cceadd (patch) | |
tree | d3332206449e3abaa98dfe3686cf78165e9ef381 /src/monitor | |
parent | 581de96fc30b7fe44070f17a8a73f3374d38d6ff (diff) | |
download | sssd-6982b488e03b8e29e186f0c54cf5f80438cceadd.tar.gz sssd-6982b488e03b8e29e186f0c54cf5f80438cceadd.tar.bz2 sssd-6982b488e03b8e29e186f0c54cf5f80438cceadd.zip |
Convert IN_MULTICAST parameter to host order
https://fedorahosted.org/sssd/ticket/2087
IN_MULTICAST accepts address in the host order, but network order was
supplied.
Diffstat (limited to 'src/monitor')
-rw-r--r-- | src/monitor/monitor_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monitor/monitor_netlink.c b/src/monitor/monitor_netlink.c index c0134237..6baf1365 100644 --- a/src/monitor/monitor_netlink.c +++ b/src/monitor/monitor_netlink.c @@ -610,7 +610,7 @@ static bool route_is_multicast(struct rtnl_route *route_obj) return false; } - return IN_MULTICAST(addr4->s_addr); + return IN_MULTICAST(ntohl(addr4->s_addr)); } else if (nl_addr_get_family(nl) == AF_INET6) { addr6 = nl_addr_get_binary_addr(nl); if (!addr6) { |