feat: add support for pcap replay

This commit is contained in:
eddc005
2024-05-06 20:28:36 +01:00
parent 5723490a6c
commit 94387450cf
5 changed files with 176 additions and 10 deletions

View File

@@ -281,6 +281,11 @@ func (n *nfqueuePacketIO) Close() error {
return n.n.Close()
}
// nfqueue IO does not issue shutdown
func (n *nfqueuePacketIO) SetCancelFunc(cancelFunc context.CancelFunc) error {
return nil
}
func (n *nfqueuePacketIO) setupNft(local, rst, remove bool) error {
rules, err := generateNftRules(local, rst)
if err != nil {