From: Eric Leblond Date: Sun, 2 Jul 2017 15:57:54 +0000 (+0200) Subject: ip2bin: fix plugin link for some compiler X-Git-Tag: ulogd-2.0.7~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fafa58537a014af5205896b8753a79b6bf1b8f44;p=thirdparty%2Fulogd2.git 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. --- 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;