We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7324c6c commit a56f063Copy full SHA for a56f063
pkg/candevice/device_linux.go
@@ -13,8 +13,9 @@ import (
13
)
14
15
const (
16
- CanLinkType = "can"
17
- VcanLinkType = "vcan"
+ CanLinkType = "can"
+ VcanLinkType = "vcan"
18
+ VxcanLinkType = "vxcan"
19
20
21
@@ -545,7 +546,7 @@ func (li *linkInfoMsg) decode(nad *netlink.AttributeDecoder) error {
545
546
switch nad.Type() {
547
case unix.IFLA_INFO_KIND:
548
li.linkType = nad.String()
- if (li.linkType != CanLinkType) && (li.linkType != VcanLinkType) {
549
+ if (li.linkType != CanLinkType) && (li.linkType != VcanLinkType) && (li.linkType != VxcanLinkType) {
550
return fmt.Errorf("not a CAN interface")
551
}
552
case unix.IFLA_INFO_DATA:
0 commit comments