- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ParseNetlinkRouteAttr (0.29 sec)
-
src/net/interface_linux.go
case syscall.RTM_NEWLINK: ifim := (*syscall.IfInfomsg)(unsafe.Pointer(&m.Data[0])) if ifindex == 0 || ifindex == int(ifim.Index) { attrs, err := syscall.ParseNetlinkRouteAttr(&m) if err != nil { return nil, os.NewSyscallError("parsenetlinkrouteattr", err) } ift = append(ift, *newLink(ifim, attrs)) if ifindex == int(ifim.Index) { break loop } } } } return ift, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 27 05:42:03 UTC 2022 - 7K bytes - Viewed (0) -
src/syscall/netlink_linux.go
// NetlinkRouteAttr represents a netlink route attribute. type NetlinkRouteAttr struct { Attr RtAttr Value []byte } // ParseNetlinkRouteAttr parses m's payload as an array of netlink // route attributes and returns the slice containing the // NetlinkRouteAttr structures. func ParseNetlinkRouteAttr(m *NetlinkMessage) ([]NetlinkRouteAttr, error) { var b []byte switch m.Header.Type { case RTM_NEWLINK, RTM_DELLINK:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 20:01:34 UTC 2023 - 4.8K bytes - Viewed (0)