profile
viewpoint

vishvananda/netlink 1045

Simple netlink library for go.

aboch/docker 1

Docker - the open-source application container engine

aboch/socketplane 1

SocketPlane - Multi-Host Container Networking

aboch/libnetwork_new 0

networking for containers

aboch/netlink 0

Simple netlink library for go.

aboch/swarmkit 0

A toolkit for orchestrating distributed systems at any scale. It includes primitives for node discovery, raft-based consensus, task scheduling and more.

push eventvishvananda/netlink

Oleg Senin

commit sha c79a4b7b40668c3f7867bf256b80b6b2dc65e58e

Skip NetNsId tests unless root

view details

push time in a day

pull request commentvishvananda/netlink

Skip NetNsId tests unless root

LGTM

RealFatCat

comment created time in a day

push eventvishvananda/netlink

stffabi

commit sha 5f2fc868c2d0841565778edda0e0ea2843a49431

Add BridgeSetVlanFiltering to change VlanFiltering on an existing bridge Signed-off-by: stffabi <stffabi@pm.me>

view details

push time in 4 days

Pull request review commentvishvananda/netlink

Introduce RouteGetWithOptions that allows to modify the RouteGet

 func deserializeRoute(m []byte) (Route, error) { 	return route, nil } +// RouteGetOptions contains a set of options to use with+// RouteGetWithOptions+type RouteGetOptions struct {+	VrfName string+}++// RouteGetWithOptions gets a route to a specific destination from the host system.+// Equivalent to: 'ip route get <> vrf <VrfName>'.+func RouteGetWithOptions(destination net.IP, options *RouteGetOptions) ([]Route, error) {+	return pkgHandle.RouteGetWithOptions(destination, options)+}+ // RouteGet gets a route to a specific destination from the host system. // Equivalent to: 'ip route get'. func RouteGet(destination net.IP) ([]Route, error) { 	return pkgHandle.RouteGet(destination) } -// RouteGet gets a route to a specific destination from the host system.-// Equivalent to: 'ip route get'.-func (h *Handle) RouteGet(destination net.IP) ([]Route, error) {+// RouteGetWithOptions gets a route to a specific destination from the host system.+// Equivalent to: 'ip route get <> vrf <VrfName>'.+func (h *Handle) RouteGetWithOptions(destination net.IP, options *RouteGetOptions) ([]Route, error) {

I am not against this approach, was just thinking that if we add variadic options to existing function instead:

func (h *Handle) RouteGet(destination net.IP, options...RouteOption) ([]Route, error)

then we can avoid adding a new API.

amitn

comment created time in 12 days

push eventvishvananda/netlink

Tobias Klauser

commit sha bfba8e4149dbcd836749e155eb2bac21f3c943dc

Correct value of SizeofXfrmUsersaFlush struct xfrm_usersa_flush contains a single u8, thus sizeof(struct xfrm_usersa_flush) == 1 as can be verified by running the following code through go tool cgo -godefs: package xfrm_test // #include <linux/xfrm.h> import "C" const SizeofXfrmUsersaFlush = C.sizeof_struct_xfrm_usersa_flush which results in // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs foo.go package xfrm_test const SizeofXfrmUsersaFlush = 0x1 Signed-off-by: Tobias Klauser <tklauser@distanz.ch>

view details

push time in 12 days

PR merged vishvananda/netlink

Correct value of SizeofXfrmUsersaFlush

struct xfrm_usersa_flush contains a single u8, thus sizeof(struct xfrm_usersa_flush) == 1 as can be verified by running the following code through go tool cgo -godefs:

package xfrm_test

// #include <linux/xfrm.h>
import "C"

const SizeofXfrmUsersaFlush = C.sizeof_struct_xfrm_usersa_flush

which results in

// Code generated by cmd/cgo -godefs; DO NOT EDIT.
// cgo -godefs foo.go

package xfrm_test

const SizeofXfrmUsersaFlush = 0x1

Signed-off-by: Tobias Klauser tklauser@distanz.ch

+1 -1

1 comment

1 changed file

tklauser

pr closed time in 12 days

pull request commentvishvananda/netlink

Correct value of SizeofXfrmUsersaFlush

LGTM

tklauser

comment created time in 12 days

push eventvishvananda/netlink

chendotjs

commit sha a2e8781202af8ff188cafb18c77d07d8715f7a14

rule: add support for dport/sport

view details

push time in 13 days

PR merged vishvananda/netlink

rule: add support for dport/sport

This PR adds ability equivalent to ip rule add dport xxx-xxx sport xxx table main

+44 -0

3 comments

4 changed files

chendotjs

pr closed time in 13 days

pull request commentvishvananda/netlink

rule: add support for dport/sport

LGTM

chendotjs

comment created time in 13 days

pull request commentvishvananda/netlink

fix link attribute *NetNsID*

@zhangzujian ping

zhangzujian

comment created time in 13 days

push eventvishvananda/netlink

Jianlin Lv

commit sha 5e92c072cd0d568e123c7193940f167b85f18b7a

check payload of the NLMSG_DONE nlmsg check the payload of the NLMSG_DONE type netlink message for possible error Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com>

view details

push time in 13 days

PR merged vishvananda/netlink

check payload of the NLMSG_DONE nlmsg

check the payload of the NLMSG_DONE type netlink message for possible error

Signed-off-by: Jianlin Lv Jianlin.Lv@arm.com

+1 -4

1 comment

1 changed file

Jianlin-lv

pr closed time in 13 days

pull request commentvishvananda/netlink

check payload of the NLMSG_DONE nlmsg

Thanks @Jianlin-lv and @joestringer

LGTM

Jianlin-lv

comment created time in 13 days

pull request commentvishvananda/netlink

added conntrack event subscription support

ping @maxzerker pls also squash your commits into one

maxzerker

comment created time in 13 days

pull request commentvishvananda/netlink

rule: add support for dport/sport

@chendotjs pls rebase

chendotjs

comment created time in 13 days

push eventvishvananda/netlink

Amit Nishry

commit sha 7ed9c95980b46c993f7bd3be7a27494c10c1a5ad

rule, add TOS Signed-off-by: Amit Nishry <amit.nishry@gmail.com>

view details

push time in 13 days

PR merged vishvananda/netlink

rule, add TOS
+8 -1

1 comment

3 changed files

amitn

pr closed time in 13 days

pull request commentvishvananda/netlink

rule, add TOS

LGTM

amitn

comment created time in 13 days

Pull request review commentvishvananda/netlink

rule: add support for dport/sport

 func NewRule() *Rule { 		Flow:              -1, 	} }++// RulePortRange creates rule sport/dport range.+func NewRulePortRange(start, end uint16) *RulePortRange {

Why not making this a method of Rule structure ?

(r *Rule) AddPortRange(start, end uint16)
chendotjs

comment created time in a month

push eventvishvananda/netlink

Benjamin Peterson

commit sha ec20eb4fc390e0eee48c461f2a7005931615bc20

fix link statistics pointer alignment gc's `-d checkptr` option reported the following problem: ``` --- FAIL: TestAddrAdd (0.00s) panic: runtime error: unsafe pointer conversion [recovered] panic: runtime error: unsafe pointer conversion goroutine 19 [running]: testing.tRunner.func1(0xc00011a240) go/src/testing/testing.go:916 +0xaeb panic(0x7f5c80, 0xc00013a100) go/src/runtime/panic.go:973 +0x396 github.com/vishvananda/netlink.LinkDeserialize(0x0, 0xc000174010, 0x514, 0x514, 0x1, 0x1, 0x0, 0x0) netlink/link_linux.go:1674 +0x33c5 github.com/vishvananda/netlink.execGetLink(0xc0001540a0, 0xc00013a0a0, 0x2, 0x2, 0x3) netlink/link_linux.go:1495 +0x205 github.com/vishvananda/netlink.(*Handle).LinkByName(0xa95e70, 0x81c4c9, 0x2, 0x4, 0x4, 0xc, 0x1) netlink/link_linux.go:1415 +0x578 github.com/vishvananda/netlink.LinkByName(...) netlink/link_linux.go:1395 github.com/vishvananda/netlink.DoTestAddr(0xc00011a240, 0x82d878) netlink/addr_test.go:62 +0xfbc github.com/vishvananda/netlink.TestAddrAdd(0xc00011a240) netlink/addr_test.go:15 +0x45 testing.tRunner(0xc00011a240, 0x82d898) go/src/testing/testing.go:954 +0x1ec created by testing.(*T).Run go/src/testing/testing.go:1005 +0x661 FAIL github.com/vishvananda/netlink 0.006s FAIL ``` Make sure the link structures are properly aligned.

view details

push time in a month

PR merged vishvananda/netlink

fix link statistics pointer alignment

gc's -d checkptr option reported the following problem:

--- FAIL: TestAddrAdd (0.00s)
panic: runtime error: unsafe pointer conversion [recovered]
	panic: runtime error: unsafe pointer conversion

goroutine 19 [running]:
testing.tRunner.func1(0xc00011a240)
	go/src/testing/testing.go:916 +0xaeb
panic(0x7f5c80, 0xc00013a100)
	go/src/runtime/panic.go:973 +0x396
github.com/vishvananda/netlink.LinkDeserialize(0x0, 0xc000174010, 0x514, 0x514, 0x1, 0x1, 0x0, 0x0)
	netlink/link_linux.go:1674 +0x33c5
github.com/vishvananda/netlink.execGetLink(0xc0001540a0, 0xc00013a0a0, 0x2, 0x2, 0x3)
	netlink/link_linux.go:1495 +0x205
github.com/vishvananda/netlink.(*Handle).LinkByName(0xa95e70, 0x81c4c9, 0x2, 0x4, 0x4, 0xc, 0x1)
	netlink/link_linux.go:1415 +0x578
github.com/vishvananda/netlink.LinkByName(...)
	netlink/link_linux.go:1395
github.com/vishvananda/netlink.DoTestAddr(0xc00011a240, 0x82d878)
	netlink/addr_test.go:62 +0xfbc
github.com/vishvananda/netlink.TestAddrAdd(0xc00011a240)
	netlink/addr_test.go:15 +0x45
testing.tRunner(0xc00011a240, 0x82d898)
	go/src/testing/testing.go:954 +0x1ec
created by testing.(*T).Run
	go/src/testing/testing.go:1005 +0x661
FAIL	github.com/vishvananda/netlink	0.006s
FAIL

Make sure the link structures are properly aligned.

+12 -14

1 comment

1 changed file

benjaminp

pr closed time in a month

pull request commentvishvananda/netlink

fix link statistics pointer alignment

LGTM

benjaminp

comment created time in a month

push eventvishvananda/netlink

Zhiyuan Hou

commit sha ed8931371a8063912d9cf485a35447e791ee6f83

filter, action: Add support for skbedit Signed-off-by: Zhiyuan Hou <zhiyuan2048@linux.alibaba.com>

view details

push time in 2 months

PR merged vishvananda/netlink

filter, action: Add support for skbedit

support tc action skbedit.

+266 -0

3 comments

4 changed files

zhiyuan0x

pr closed time in 2 months

pull request commentvishvananda/netlink

filter, action: Add support for skbedit

LGTM

zhiyuan0x

comment created time in 2 months

push eventvishvananda/netlink

Zhiyuan Hou

commit sha e25c252266f633bfd3d835909014a55d2fbe4a73

filter, action: Add support for tunnel_key Signed-off-by: Zhiyuan Hou <zhiyuan2048@linux.alibaba.com>

view details

push time in 3 months

PR merged vishvananda/netlink

filter, action: Add support for tunnel_key

Add support for tunnel_key

+277 -0

4 comments

4 changed files

zhiyuan0x

pr closed time in 3 months

pull request commentvishvananda/netlink

filter, action: Add support for tunnel_key

LGTM

zhiyuan0x

comment created time in 3 months

Pull request review commentvishvananda/netlink

filter, action: Add support for tunnel_key

 func EncodeActions(attr *nl.RtAttr, actions []Action) error { 			} 			toTcGen(action.Attrs(), &mirred.TcGen) 			aopts.AddRtAttr(nl.TCA_MIRRED_PARMS, mirred.Serialize())+		case *TunnelKeyAction:+			table := attr.AddRtAttr(tabIndex, nil)+			tabIndex+++			table.AddRtAttr(nl.TCA_ACT_KIND, nl.ZeroTerminated("tunnel_key"))+			aopts := table.AddRtAttr(nl.TCA_ACT_OPTIONS, nil)+			tun := nl.TcTunnelKey{+				Action: int32(action.Action),+			}+			toTcGen(action.Attrs(), &tun.TcGen)+			aopts.AddRtAttr(nl.TCA_TUNNEL_KEY_PARMS, tun.Serialize())+			if action.Action == TCA_TUNNEL_KEY_SET {+				aopts.AddRtAttr(nl.TCA_TUNNEL_KEY_ENC_KEY_ID, htonl(action.KeyID))+				if v4 := action.SrcAddr.To4(); v4 != nil {+					aopts.AddRtAttr(nl.TCA_TUNNEL_KEY_ENC_IPV4_SRC, v4[:])+				} else if v6 := action.SrcAddr.To16(); v6 != nil {

ok

zhiyuan0x

comment created time in 3 months

Pull request review commentvishvananda/netlink

filter, action: Add support for tunnel_key

 func EncodeActions(attr *nl.RtAttr, actions []Action) error { 			} 			toTcGen(action.Attrs(), &mirred.TcGen) 			aopts.AddRtAttr(nl.TCA_MIRRED_PARMS, mirred.Serialize())+		case *TunnelKeyAction:+			table := attr.AddRtAttr(tabIndex, nil)+			tabIndex+++			table.AddRtAttr(nl.TCA_ACT_KIND, nl.ZeroTerminated("tunnel_key"))+			aopts := table.AddRtAttr(nl.TCA_ACT_OPTIONS, nil)+			tun := nl.TcTunnelKey{+				Action: int32(action.Action),+			}+			toTcGen(action.Attrs(), &tun.TcGen)+			aopts.AddRtAttr(nl.TCA_TUNNEL_KEY_PARMS, tun.Serialize())+			if action.Action == TCA_TUNNEL_KEY_SET {+				aopts.AddRtAttr(nl.TCA_TUNNEL_KEY_ENC_KEY_ID, htonl(action.KeyID))+				if v4 := action.SrcAddr.To4(); v4 != nil {+					aopts.AddRtAttr(nl.TCA_TUNNEL_KEY_ENC_IPV4_SRC, v4[:])+				} else if v6 := action.SrcAddr.To16(); v6 != nil {

What about here?

zhiyuan0x

comment created time in 3 months

Pull request review commentvishvananda/netlink

filter, action: Add support for tunnel_key

 func EncodeActions(attr *nl.RtAttr, actions []Action) error { 			} 			toTcGen(action.Attrs(), &mirred.TcGen) 			aopts.AddRtAttr(nl.TCA_MIRRED_PARMS, mirred.Serialize())+		case *TunnelKeyAction:+			table := attr.AddRtAttr(tabIndex, nil)+			tabIndex+++			table.AddRtAttr(nl.TCA_ACT_KIND, nl.ZeroTerminated("tunnel_key"))+			aopts := table.AddRtAttr(nl.TCA_ACT_OPTIONS, nil)+			tun := nl.TcTunnelKey{+				Action: int32(action.Action),+			}+			toTcGen(action.Attrs(), &tun.TcGen)+			aopts.AddRtAttr(nl.TCA_TUNNEL_KEY_PARMS, tun.Serialize())+			if action.Action == TCA_TUNNEL_KEY_SET {+				aopts.AddRtAttr(nl.TCA_TUNNEL_KEY_ENC_KEY_ID, htonl(action.KeyID))+				if v4 := action.SrcAddr.To4(); v4 != nil {+					aopts.AddRtAttr(nl.TCA_TUNNEL_KEY_ENC_IPV4_SRC, v4[:])+				} else if v6 := action.SrcAddr.To16(); v6 != nil {+					aopts.AddRtAttr(nl.TCA_TUNNEL_KEY_ENC_IPV6_SRC, v6[:])+				} else {+					return fmt.Errorf("invalid src addr %s for tunnel_key action", action.SrcAddr)+				}+				if v4 := action.DstAddr.To4(); v4 != nil {+					aopts.AddRtAttr(nl.TCA_TUNNEL_KEY_ENC_IPV4_DST, v4[:])+				} else if v6 := action.DstAddr.To16(); v6 != nil {

And here

zhiyuan0x

comment created time in 3 months

Pull request review commentvishvananda/netlink

filter, action: Add support for tunnel_key

 func EncodeActions(attr *nl.RtAttr, actions []Action) error { 			} 			toTcGen(action.Attrs(), &mirred.TcGen) 			aopts.AddRtAttr(nl.TCA_MIRRED_PARMS, mirred.Serialize())+		case *TunnelKeyAction:+			table := attr.AddRtAttr(tabIndex, nil)+			tabIndex+++			table.AddRtAttr(nl.TCA_ACT_KIND, nl.ZeroTerminated("tunnel_key"))+			aopts := table.AddRtAttr(nl.TCA_ACT_OPTIONS, nil)+			tun := nl.TcTunnelKey{+				Action: int32(action.Action),+			}+			toTcGen(action.Attrs(), &tun.TcGen)+			aopts.AddRtAttr(nl.TCA_TUNNEL_KEY_PARMS, tun.Serialize())+			if action.Action == TCA_TUNNEL_KEY_SET {+				aopts.AddRtAttr(nl.TCA_TUNNEL_KEY_ENC_KEY_ID, htonl(action.KeyID))+				if v4 := action.SrcAddr.To4(); v4 != nil {+					aopts.AddRtAttr(nl.TCA_TUNNEL_KEY_ENC_IPV4_SRC, v4[:])+				} else {+					aopts.AddRtAttr(nl.TCA_TUNNEL_KEY_ENC_IPV6_SRC, action.SrcAddr.To16()[:])

Why To16() if you already know it is a IPv6 address? https://golang.org/src/net/ip.go?s=5477:5499#L199

zhiyuan0x

comment created time in 3 months

push eventvishvananda/netlink

Tobias Klauser

commit sha e934999cd7cda5e3fa561529d0da5fd3cd567053

Add support for Go modules Signed-off-by: Tobias Klauser <tklauser@distanz.ch>

view details

push time in 4 months

PR merged vishvananda/netlink

Add support for Go modules

Signed-off-by: Tobias Klauser tklauser@distanz.ch

+12 -0

4 comments

2 changed files

tklauser

pr closed time in 4 months

Pull request review commentvishvananda/netlink

Add support for Go modules

+module github.com/vishvananda/netlink++go 1.12++require (+	github.com/vishvananda/netns v0.0.0-20180720170159-13995c7128cc

@tklauser the netns PR is merged. You may want to update this reference then.

tklauser

comment created time in 4 months

pull request commentvishvananda/netlink

Add support for Go modules

LGTM

tklauser

comment created time in 4 months

pull request commentvishvananda/netns

Add support for Go modules

LGTM

tklauser

comment created time in 4 months

push eventvishvananda/netlink

Takushi Fujiwara

commit sha 2ec5bdc52b8641d619639ddc5681a65de85dad60

Change LinkSetMaster's master argument type. (*Bridge -> Link) LinkSetMaster also works with Bond device. So this PR changes the type of master argument to Link.

view details

push time in 5 months

PR merged vishvananda/netlink

Change LinkSetMaster's master argument type. (*Bridge -> Link)

LinkSetMaster also works with Bond device. So this PR changes the type of master argument to Link.

+47 -16

1 comment

2 changed files

hiepon

pr closed time in 5 months

pull request commentvishvananda/netlink

Change LinkSetMaster's master argument type. (*Bridge -> Link)

LGTM

hiepon

comment created time in 5 months

pull request commentvishvananda/netlink

fix link attribute *NetNsID*

@zhangzujian Please address the comment

zhangzujian

comment created time in 5 months

push eventvishvananda/netlink

Yakushi Fujiwara

commit sha ac5f4df047429f3bf1e076eb4053cd44d17f4012

Add support for parsing IFLA_BOND_ARP_IP_TARGET

view details

push time in 5 months

pull request commentvishvananda/netlink

Add support for parsing IFLA_BOND_ARP_IP_TARGET

LGTM

hiepon

comment created time in 5 months

push eventvishvananda/netlink

Oleg Senin

commit sha 6b3a223c53798a2e045a4e8103febfd9de72a591

Add ip6tnl support

view details

push time in 5 months

PR merged vishvananda/netlink

Add ip6tnl support
+94 -0

1 comment

3 changed files

RealFatCat

pr closed time in 5 months

pull request commentvishvananda/netlink

Add ip6tnl support

LGTM

RealFatCat

comment created time in 5 months

push eventvishvananda/netlink

Sam Gwydir

commit sha 205d80393d63ba81fb9be7a3f02ab6eb7ed26e92

Support setting link state for SR-IOV VFs

view details

Ihar Hrachyshka

commit sha 07ace697bea4b7641fbc6dcf7c90432c6b8bea5c

Introduce constants for known VF link states

view details

push time in 5 months

PR merged vishvananda/netlink

Support setting link state for SR-IOV VFs
+36 -0

3 comments

1 changed file

booxter

pr closed time in 5 months

pull request commentvishvananda/netlink

Support setting link state for SR-IOV VFs

LGTM

booxter

comment created time in 5 months

PR closed vishvananda/netlink

Add bond slave information
+124 -5

4 comments

3 changed files

lebauce

pr closed time in 5 months

push eventvishvananda/netlink

Takushi Fujiwara

commit sha 205a160d2eb0fadbfcf7c39d7223a7eee20e1b97

Add bond slave information This PR refers to PR@lebauce and add some changes. - Added some tests to retrieve bond slave information. - Link.BondSlave is changed to LinkSlave interface. - BondSlaveState.String() returns UPPER case. (same as iproute2) - BondSlaveMiiStatus.String() returns UPPER case. (same as iproute2)

view details

push time in 5 months

PR merged vishvananda/netlink

Add bond slave information

This PR refers to PR@lebauce and add some changes.

  • Added some tests to retrieve bond slave information.
  • Link.BondSlave is changed to LinkSlave interface.
  • BondSlaveState.String() returns UPPER case. (same as iproute2)
  • BondSlaveMiiStatus.String() returns UPPER case. (same as iproute2)
+234 -5

1 comment

4 changed files

hiepon

pr closed time in 5 months

pull request commentvishvananda/netlink

Add bond slave information

Sorry, no feedback for the past 5 months. Will go with #487

lebauce

comment created time in 5 months

pull request commentvishvananda/netlink

Add bond slave information

Closes #425

LGTM

hiepon

comment created time in 5 months

push eventvishvananda/netlink

Laurent Bernaille

commit sha e906d226249b76de7fe3c326ea4616ca3b5945a6

Add support for output-mark

view details

push time in 5 months

PR merged vishvananda/netlink

Add support for output-mark

Support for output-mark in xfrm states I tried to have an implementation very close to the iproute one

I have tested it and had no problem with it but I may still have forgotten something. More than happy to update the PR if this is the case

+33 -2

6 comments

4 changed files

lbernail

pr closed time in 5 months

pull request commentvishvananda/netlink

Add support for output-mark

LGTM

lbernail

comment created time in 5 months

pull request commentvishvananda/netlink

Add support for output-mark

Thanks. Yes please, this project follows a "one commit per PR/topic" approach.

lbernail

comment created time in 5 months

push eventvishvananda/netlink

Tobias Klauser

commit sha 36d367fd76f902367981d67357d9742a5f4e7086

Remove unused *_PROTO constants These are unused since commit 941b4de9e151f1c3662f3f1fa23ec263999f09de Signed-off-by: Tobias Klauser <tklauser@distanz.ch>

view details

push time in 5 months

PR merged vishvananda/netlink

Remove unused *_PROTO constants

These are unused since commit 941b4de9e151f1c3662f3f1fa23ec263999f09de

Signed-off-by: Tobias Klauser tklauser@distanz.ch

+1 -5

1 comment

1 changed file

tklauser

pr closed time in 5 months

pull request commentvishvananda/netlink

Remove unused *_PROTO constants

LGTM

tklauser

comment created time in 5 months

pull request commentvishvananda/netlink

Add support for output-mark

Please extend the existing xrfm_state UT to also exercise the writing/reading of this field

lbernail

comment created time in 5 months

push eventvishvananda/netlink

Juan-Luis de Sousa-Valadas Castaño

commit sha 07130f38b91e869b1445b5f888ba2a9b64d73b9d

Fix parsing of IFLA_GRE_COLLECT_METADATA

view details

push time in 5 months

PR merged vishvananda/netlink

Fix parsing of IFLA_GRE_COLLECT_METADATA

Documentation of user space Netlink Protocol Library Suite (libnl) at http://www.infradead.org/~tgr/libnl statesunder section 6.4. Attribute Data Types at http://www.infradead.org/~tgr/libnl/doc/core.html#core_attr_types :

"6.4.3. Flag Attributes

The flag attribute represents a boolean datatype. The presence of the attribute implies a value of true, the absence of the attribute implies the value false. Therefore the payload length of flag attributes is always 0."

+1 -3

2 comments

1 changed file

juanluisvaladas

pr closed time in 5 months

pull request commentvishvananda/netlink

Fix parsing of IFLA_GRE_COLLECT_METADATA

LGTM

juanluisvaladas

comment created time in 5 months

more