X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=install.sh;h=66ea534e0e9c41e64b87f00df40f7e0fc77ad691;hb=2275d2ee3f167c9ed4644d761ee7b5ea27336238;hp=97df120917ada357672add6216fd7587d595b62d;hpb=d4d0eb34912fd66bf9eb73d98ed57fd3def3336a;p=flowspec-xdp diff --git a/install.sh b/install.sh index 97df120..66ea534 100755 --- a/install.sh +++ b/install.sh @@ -1,11 +1,11 @@ #!/bin/bash set -e -RULES="$(birdc show route table flowspec4) -$(birdc show route table flowspec6)" +RULES="$(birdc show route table flowspec4 primary all) +$(birdc show route table flowspec6 primary all)" -echo "$RULES" | ./genrules.py --8021q=drop-vlan --v6frag=ignore-parse-if-rule --ihl=drop-options -clang -std=c99 -pedantic -Wall -Wextra -Wno-pointer-arith -Wno-unused-variable -O3 -emit-llvm -c xdp.c -o - | llc -O3 -march=bpf -filetype=obj -o xdp +echo "$RULES" | ./genrules.py --8021q=drop-vlan --v6frag=ignore-parse-if-rule --ihl=parse-options +clang -g -std=c99 -pedantic -Wall -Wextra -Wno-pointer-arith -Wno-unused-variable -O3 -emit-llvm -c xdp.c -o - | llc -O3 -march=bpf -filetype=obj -o xdp echo "Before unload drop count was:" ./dropcount.sh || echo "Not loaded"