Commit 582f6d4f authored by Albert Strasheim's avatar Albert Strasheim Committed by Russ Cox

syscall: Handle RTM_NEWROUTE in ParseNetlinkRouteAttr on Linux.

R=mikioh.mikioh, rsc
CC=golang-dev
https://golang.org/cl/4954047
parent d130611f
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment