-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from pouriyajamshidi/feat/add_ip_and_port_filt…
…ering feat/implement IP and port filtering
- Loading branch information
Showing
8 changed files
with
113 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
module github.com/pouriyajamshidi/flat | ||
|
||
go 1.22 | ||
go 1.23.2 | ||
|
||
require ( | ||
github.com/cilium/ebpf v0.16.0 | ||
github.com/google/gopacket v1.1.19 | ||
github.com/gookit/color v1.5.4 | ||
github.com/stretchr/testify v1.9.0 | ||
github.com/vishvananda/netlink v1.3.0 | ||
golang.org/x/sys v0.26.0 | ||
golang.org/x/sys v0.27.0 | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/vishvananda/netns v0.0.4 // indirect | ||
github.com/vishvananda/netns v0.0.5 // indirect | ||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect | ||
golang.org/x/exp v0.0.0-20240416160154-fe59bbe5cc7f // indirect | ||
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package types | ||
|
||
import ( | ||
"net/netip" | ||
|
||
"github.com/vishvananda/netlink" | ||
) | ||
|
||
// UserInput holds the information provided through flags | ||
type UserInput struct { | ||
Interface netlink.Link | ||
IP netip.Addr | ||
Port uint16 | ||
} |