summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/sd-ipv4acd.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-05-23 17:19:35 +0200
committerLennart Poettering <lennart@poettering.net>2016-05-26 15:34:42 +0200
commit73e94c0dcb41c0924d506a329f874e69409437f6 (patch)
tree92badf3e16a733497db1e22c7a81b9fef564f1d1 /src/libsystemd-network/sd-ipv4acd.c
parenta48fc60a331803fcd4add17cdb5b3cae99bc2e80 (diff)
downloadsystemd-73e94c0dcb41c0924d506a329f874e69409437f6.tar.gz
ipv4l-{acd,ll}: make sure ipv4 addresses are unsigned
And some other minor fixes.
Diffstat (limited to 'src/libsystemd-network/sd-ipv4acd.c')
-rw-r--r--src/libsystemd-network/sd-ipv4acd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-network/sd-ipv4acd.c b/src/libsystemd-network/sd-ipv4acd.c
index 2fc8651399..e78d8a04f2 100644
--- a/src/libsystemd-network/sd-ipv4acd.c
+++ b/src/libsystemd-network/sd-ipv4acd.c
@@ -48,8 +48,8 @@
#define RATE_LIMIT_INTERVAL 60
#define DEFEND_INTERVAL 10
-#define IPV4ACD_NETWORK 0xA9FE0000L
-#define IPV4ACD_NETMASK 0xFFFF0000L
+#define IPV4ACD_NETWORK 0xA9FE0000UL
+#define IPV4ACD_NETMASK 0xFFFF0000UL
#define log_ipv4acd_errno(ll, error, fmt, ...) log_internal(LOG_DEBUG, error, __FILE__, __LINE__, __func__, "ACD: " fmt, ##__VA_ARGS__)
#define log_ipv4acd(ll, fmt, ...) log_ipv4acd_errno(ll, 0, fmt, ##__VA_ARGS__)