Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ set(CLANG_INCLUDES
# function to make ebpf programs
function(build_ebpf ebpfsrc)
add_custom_command(OUTPUT ${ebpfsrc}.o
COMMAND "${CLANG}" -nostdinc -isystem `gcc -print-file-name=include` ${CLANG_INCLUDES} ${CLANG_DEFINES} -O2 ${CLANG_OPTIONS} -emit-llvm -c "${CMAKE_SOURCE_DIR}/ebpfKern/${ebpfsrc}.c" -o -| "${LLC}" -march=bpf -filetype=obj -o "${ebpfsrc}.o"
COMMAND "${CLANG}" -nostdinc -isystem `gcc -print-file-name=include` ${CLANG_INCLUDES} ${CLANG_DEFINES} -O2 ${CLANG_OPTIONS} -emit-llvm -fno-stack-protector -c "${CMAKE_SOURCE_DIR}/ebpfKern/${ebpfsrc}.c" -o -| "${LLC}" -march=bpf -filetype=obj -o "${ebpfsrc}.o"
COMMENT "Building EBPF object ${ebpfsrc}.o"
DEPENDS ebpfKern/${ebpfsrc}.c ${EBPF_DEPENDS}
)
Expand Down
2 changes: 1 addition & 1 deletion networkTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ extern "C" bool NetworkTrackerSeenAccept(NetworkTracker *n, bool IPv4, const BYT
return false;
}

BYTE empty[16];
BYTE empty[16] = {0};
AddrAndPort d(empty, IPv4, 0);

if (n->SeenAccept(AddrAndPort(sourceAddr, IPv4, sourcePort), &d)) {
Expand Down