Skip to content

Add option to save raw packets to file #181

Add option to save raw packets to file

Add option to save raw packets to file #181

Workflow file for this run

name: Clang Format Check
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clang
run: |
sudo apt-get install -y clang-format-12
clang-format -i -fallback-style=none $(git ls-files | grep -v '^src/wireshark/' | grep '\.\(c\|h\)$')
- name: Check
# Build your program with the given configuration
run: |
dirty=$(git ls-files --modified)
set +x
if [[ $dirty ]]; then
git diff
echo "Error: File(s) are not properly formatted."
echo "$dirty"
exit 1
fi