X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=install.sh;h=8106defcede58a12000699055160daf35c3e5856;hb=109e2f9ca7608102bbb276296a2cf8389e22c5cb;hp=b8f83ab1e85823bfdfaadb0dc2ae47c3c6d622ab;hpb=dc5a8c8f1d9227f4741a57dee92e326302ec062d;p=flowspec-xdp diff --git a/install.sh b/install.sh index b8f83ab..8106def 100755 --- a/install.sh +++ b/install.sh @@ -17,7 +17,7 @@ $(birdc show route table flowspec6 primary all)" echo "const uint8_t COMPILE_TIME_RAND[] = { $(dd if=/dev/urandom of=/dev/stdout bs=1 count=8 2>/dev/null | hexdump -e '4/1 "0x%02x, "') };" > rand.h -echo "$RULES" | ./genrules.py --8021q=drop-vlan --v6frag=ignore-parse-if-rule --ihl=parse-options +STATS_RULES="$(echo "$RULES" | ./genrules.py --8021q=drop-vlan --v6frag=ignore-parse-if-rule --ihl=parse-options)" clang $CLANG_ARGS -g -std=c99 -pedantic -Wall -Wextra -Wno-pointer-arith -Wno-unused-variable -Wno-unused-function -O3 -emit-llvm -c xdp.c -o xdp.bc if [ "$2" != "" ]; then clang $4 -g -std=c99 -pedantic -Wall -Wextra -Wno-pointer-arith -O3 -emit-llvm -c "$2" -o wrapper.bc @@ -37,4 +37,4 @@ ip link set "$1" xdpoffload obj xdp sec $XDP_SECTION || ( echo "Failed to install in driver, using generic..." && ip link set "$1" xdpgeneric obj xdp sec $XDP_SECTION ) ) -echo "$RULES" | grep "^flow. {" > installed-rules.txt +echo "$STATS_RULES" > installed-rules.txt