diff options
author | Eric Leblond <eric@regit.org> | 2017-07-02 17:57:54 +0200 |
---|---|---|
committer | Eric Leblond <eric@regit.org> | 2017-07-02 18:02:56 +0200 |
commit | fafa58537a014af5205896b8753a79b6bf1b8f44 (patch) | |
tree | b0ca0d4b0a0ec7348bac47bd6b901c8d5a228c21 | |
parent | 6155e8ad65e9db172ef56baffed498080891296c (diff) |
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.
-rw-r--r-- | filter/ulogd_filter_IP2BIN.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |