Skip to content

Fix multiple RST causing cooldown to multiple more than once #332

Fix multiple RST causing cooldown to multiple more than once

Fix multiple RST causing cooldown to multiple more than once #332

Workflow file for this run

name: Push actions
on:
push:
workflow_dispatch:
jobs:
test:
name: Run tests with ${{ matrix.flags.flags }}
runs-on: ubuntu-24.04
strategy:
matrix:
flags:
- flags: CHECKSUM_HACK=kfunc
desc: kfunc
- flags: CHECKSUM_HACK=kprobe
desc: kprobe
- flags: CHECKSUM_HACK=kprobe STRIP_BTF_EXT=1
desc: kprobe-strip-btf-ext
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt install python3 clang-15 llvm pahole \
bats bc conntrack ethtool iperf3 jq socat tshark wireguard-tools \
libbpf-dev libffi-dev libelf-dev
- name: Build & Test
run: |
export BPF_CC=clang-15
sudo cp /sys/kernel/btf/vmlinux /lib/modules/`uname -r`/build
make -j ${{ matrix.flags.flags }}
sudo nft delete table filter # Docker's nftables rule drops IPv4 packets in tests
sudo insmod out/mimic.ko
sudo make test ${{ matrix.flags.flags }}
- name: Upload captured packets
uses: actions/upload-artifact@v4
if: always()
with:
name: pcap-${{ matrix.flags.desc }}
path: out/*.pcapng
build-deb:
name: Build .deb packages for ${{ matrix.distro.name }}
runs-on: ubuntu-latest
strategy:
matrix:
distro:
- name: Debian 12
codename: bookworm
image: debian:bookworm-slim
- name: Ubuntu 24.04
codename: noble
image: ubuntu:noble
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: jtdor/build-deb-action@v1
with:
buildpackage-opts: -b -us -uc
docker-image: ${{ matrix.distro.image }}
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.distro.codename }}-packages
path: |
debian/artifacts/*.deb
debian/artifacts/*.ddeb
test-deb-install:
name: Test .deb installation
needs: build-deb
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: noble-packages
path: noble-packages
- name: Test Install
run: |
sudo apt install ./noble-packages/*.deb linux-headers-`uname -r`
sudo modprobe mimic