forked from florianl/go-nfqueue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnfqueue_others.go
40 lines (31 loc) · 938 Bytes
/
nfqueue_others.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//+build !linux
package nfqueue
import (
"context"
)
// Nfqueue is not implemented for OS other than linux
type Nfqueue struct{}
// Open is not implemented for OS other than Linux
func Open(_ *Config) (*Nfqueue, error) {
return nil, ErrNotLinux
}
// Close is not implemented for OS other than Linux
func (nfq *Nfqueue) Close() error {
return ErrNotLinux
}
// Register is not implemented for OS other than Linux
func (nfe *Nfqueue) Register(_ context.Context, _ byte, _ HookFunc) error {
return ErrNotLinux
}
// SetVerdict is not implemented for OS other than Linux
func (nfq *Nfqueue) SetVerdict(_, _ int) error {
return ErrNotLinux
}
// SetVerdictBatch is not implemented for OS other than Linux
func (nfq *Nfqueue) SetVerdictBatch(_, _ int) error {
return ErrNotLinux
}
// SetVerdictWithMark is not implemented for OS other than Linux
func (nfqueue *Nfqueue) SetVerdictWithMark(_, _, _ int) error {
return ErrNotLinux
}