1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:14:47 -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:
Albert Strasheim 2011-08-26 15:38:42 -04:00 committed by Russ Cox
parent d130611f45
commit 582f6d4fd7

View File

@ -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
}