| // Copyright 2016 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| // +build dragonfly freebsd netbsd |
| func (w *wireFormat) parseInterfaceAnnounceMessage(_ RIBType, b []byte) (Message, error) { |
| return nil, errMessageTooShort |
| l := int(nativeEndian.Uint16(b[:2])) |
| return nil, errInvalidMessage |
| m := &InterfaceAnnounceMessage{ |
| Index: int(nativeEndian.Uint16(b[4:6])), |
| What: int(nativeEndian.Uint16(b[22:24])), |
| for i := 0; i < 16; i++ { |
| m.Name = string(b[6 : 6+i]) |