Skip to content

Commit

Permalink
FIXME: building failure for CentOS 6
Browse files Browse the repository at this point in the history
1,  Network headers files rearranged and <net/ipv6.h> included:
    CentOS 6 got building failures due to lack of ipv6_addr_any
2,  IS_ENABLED() used by latest trace_ringbuffer, but not defined

Signed-off-by: shenping.matt <shenping.matt@bytedance.com>
  • Loading branch information
shenping-bd committed Apr 24, 2024
1 parent 7aabaec commit ecc5721
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions driver/LKM/src/smith_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
#include <linux/moduleparam.h>
#include <linux/netfilter.h>
#include <linux/netfilter_ipv4.h>

#if IS_ENABLED(CONFIG_IPV6)
#include <linux/ipv6.h>
#include <net/ipv6.h> /* ipv6_addr_any */
#include <linux/netfilter_ipv6.h>
#endif

#define EXIT_PROTECT 0
#define SANDBOX 0
Expand Down
1 change: 1 addition & 0 deletions driver/LKM/src/trace_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/oom.h>
#include <linux/kernel.h>

#include "../include/util.h"
#include "../include/trace_buffer.h"

/* kernel has READ_ONCE defined since 3.18.13 */
Expand Down

0 comments on commit ecc5721

Please sign in to comment.