mirror of
https://github.com/golang/go
synced 2024-11-25 07:17:56 -07:00
syscall: Handle RTM_NEWROUTE in ParseNetlinkRouteAttr on Linux.
R=mikioh.mikioh, rsc CC=golang-dev https://golang.org/cl/4954047
This commit is contained in:
parent
d130611f45
commit
582f6d4fd7
@ -199,6 +199,8 @@ func ParseNetlinkRouteAttr(msg *NetlinkMessage) ([]NetlinkRouteAttr, int) {
|
||||
buf = msg.Data[SizeofIfInfomsg:]
|
||||
case RTM_NEWADDR:
|
||||
buf = msg.Data[SizeofIfAddrmsg:]
|
||||
case RTM_NEWROUTE:
|
||||
buf = msg.Data[SizeofRtmsg:]
|
||||
default:
|
||||
return nil, EINVAL
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user