1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build darwin dragonfly freebsd
9 func (w *wireFormat) parseInterfaceMulticastAddrMessage(_ RIBType, b []byte) (Message, error) {
10 if len(b) < w.bodyOff {
11 return nil, errMessageTooShort
13 l := int(nativeEndian.Uint16(b[:2]))
15 return nil, errInvalidMessage
17 m := &InterfaceMulticastAddrMessage{
20 Flags: int(nativeEndian.Uint32(b[8:12])),
21 Index: int(nativeEndian.Uint16(b[12:14])),
25 m.Addrs, err = parseAddrs(uint(nativeEndian.Uint32(b[4:8])), parseKernelInetAddr, b[w.bodyOff:])