boratanrikulu / durdur

Lightweight packet filtering for Linux: 'durdur' is a high-performance, eBPF-based simple firewall tool that drops packets by IP or DNS domain. Perfect for on-demand network control.
GNU General Public License v3.0
81 stars 1 forks source link

feat: add `list` command #7

Closed boratanrikulu closed 1 year ago

codecov[bot] commented 1 year ago

Codecov Report

Merging #7 (1076987) into main (736bf3e) will increase coverage by 1.80%. The diff coverage is 71.00%.

@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
+ Coverage   75.00%   76.80%   +1.80%     
==========================================
  Files          15       17       +2     
  Lines         376      444      +68     
==========================================
+ Hits          282      341      +59     
- Misses         65       71       +6     
- Partials       29       32       +3     
Impacted Files Coverage Δ
internal/ebpf/drop.go 62.50% <0.00%> (ø)
internal/ebpf/undrop.go 43.75% <0.00%> (ø)
cmd/durdur/helpers.go 66.66% <66.66%> (ø)
cmd/durdur/list.go 75.51% <75.51%> (ø)
internal/ebpf/list.go 79.31% <79.31%> (ø)
cmd/durdur/main.go 75.00% <100.00%> (+1.66%) :arrow_up:
internal/ebpf/helpers.go 100.00% <100.00%> (ø)
internal/ebpf/testing.go 91.66% <100.00%> (-0.27%) :arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.