summaryrefslogtreecommitdiffhomepage
path: root/zebra/zapi.go
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-08-25 10:52:13 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-09-06 08:14:14 +0900
commit208e3d5e87be225b464122da82023e99430067a5 (patch)
tree442d8c5ec145bac343c6cc49e21e87d961f29446 /zebra/zapi.go
parent489aa616f05fcd086bd0c44ff2cc90119572fac6 (diff)
zebra/zapi: Missing "Destination" in InterfaceAddressUpdateBody
This patch fixes to parse the missing "Destination" field in InterfaceAddressUpdateBody message. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'zebra/zapi.go')
-rw-r--r--zebra/zapi.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/zebra/zapi.go b/zebra/zapi.go
index 6a74ddc3..573f11cc 100644
--- a/zebra/zapi.go
+++ b/zebra/zapi.go
@@ -650,10 +650,11 @@ func (b *InterfaceUpdateBody) String() string {
}
type InterfaceAddressUpdateBody struct {
- Index uint32
- Flags uint8
- Prefix net.IP
- Length uint8
+ Index uint32
+ Flags uint8
+ Prefix net.IP
+ Length uint8
+ Destination net.IP
}
func (b *InterfaceAddressUpdateBody) DecodeFromBytes(data []byte, version uint8) error {
@@ -671,6 +672,7 @@ func (b *InterfaceAddressUpdateBody) DecodeFromBytes(data []byte, version uint8)
}
b.Prefix = data[6 : 6+addrlen]
b.Length = data[6+addrlen]
+ b.Destination = data[7+addrlen : 7+addrlen*2]
return nil
}