forked from ti-mo/netfilter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
21 lines (15 loc) · 745 Bytes
/
Copy patherrors.go
File metadata and controls
21 lines (15 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package netfilter
import (
"errors"
)
const (
errWrapNetlinkUnmarshalAttrs = "error unmarshaling netlink attributes"
)
var (
// errInvalidAttributeFlags specifies if an Attribute's flag configuration is invalid.
// From a comment in Linux/include/uapi/linux/netlink.h, Nested and NetByteOrder are mutually exclusive.
errInvalidAttributeFlags = errors.New("invalid attribute; type cannot have both nested and net byte order flags")
errMessageLen = errors.New("expected at least 4 bytes in netlink message payload")
errConnIsMulticast = errors.New("Conn is attached to one or more multicast groups and can no longer be used for bidirectional traffic")
errNoMulticastGroups = errors.New("need one or more multicast groups to join")
)