From fafa58537a014af5205896b8753a79b6bf1b8f44 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Sun, 2 Jul 2017 17:57:54 +0200 Subject: ip2bin: fix plugin link for some compiler Declaring a function inline and building with -O0 was causing the following message: undefined symbol: uint32_to_ipv6 By declaring the function as static we fix the problem. --- filter/ulogd_filter_IP2BIN.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter/ulogd_filter_IP2BIN.c b/filter/ulogd_filter_IP2BIN.c index e47eeaf..2172d93 100644 --- a/filter/ulogd_filter_IP2BIN.c +++ b/filter/ulogd_filter_IP2BIN.c @@ -120,7 +120,7 @@ static char ipbin_array[MAX_KEY-START_KEY][IPADDR_LENGTH]; * Convert IPv4 address (as 32-bit unsigned integer) to IPv6 address: * add 96 bits prefix "::ffff:" to get IPv6 address "::ffff:a.b.c.d". */ -inline void uint32_to_ipv6(const uint32_t ipv4, struct in6_addr *ipv6) +static inline void uint32_to_ipv6(const uint32_t ipv4, struct in6_addr *ipv6) { ipv6->s6_addr32[0] = 0x00000000; ipv6->s6_addr32[1] = 0x00000000; -- cgit v1.2.3