mirror of
https://github.com/vishvananda/netlink
synced 2024-12-26 16:42:22 +00:00
link: add don't fragment support to Geneve
This commit is contained in:
parent
9453b0562a
commit
0e685ffcfc
10
link.go
10
link.go
@ -1033,6 +1033,7 @@ type Geneve struct {
|
||||
Link uint32
|
||||
FlowBased bool
|
||||
InnerProtoInherit bool
|
||||
Df GeneveDf
|
||||
}
|
||||
|
||||
func (geneve *Geneve) Attrs() *LinkAttrs {
|
||||
@ -1043,6 +1044,15 @@ func (geneve *Geneve) Type() string {
|
||||
return "geneve"
|
||||
}
|
||||
|
||||
type GeneveDf uint8
|
||||
|
||||
const (
|
||||
GENEVE_DF_UNSET GeneveDf = iota
|
||||
GENEVE_DF_SET
|
||||
GENEVE_DF_INHERIT
|
||||
GENEVE_DF_MAX
|
||||
)
|
||||
|
||||
// Gretap devices must specify LocalIP and RemoteIP on create
|
||||
type Gretap struct {
|
||||
LinkAttrs
|
||||
|
@ -3029,6 +3029,8 @@ func addGeneveAttrs(geneve *Geneve, linkInfo *nl.RtAttr) {
|
||||
if geneve.Tos != 0 {
|
||||
data.AddRtAttr(nl.IFLA_GENEVE_TOS, nl.Uint8Attr(geneve.Tos))
|
||||
}
|
||||
|
||||
data.AddRtAttr(nl.IFLA_GENEVE_DF, nl.Uint8Attr(uint8(geneve.Df)))
|
||||
}
|
||||
|
||||
func parseGeneveData(link Link, data []syscall.NetlinkRouteAttr) {
|
||||
|
Loading…
Reference in New Issue
Block a user