From ea9a6b8c24523f15dac9f275fc91b6d2de57f8af Mon Sep 17 00:00:00 2001 From: Eiichiro Watanabe Date: Wed, 9 Dec 2015 00:52:35 +0900 Subject: packet: remove SessionID field from RTRIPPrefix * Session ID field is not defined in IPvxPrefix PDUs in RFC6810 --- packet/rtr.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/packet/rtr.go b/packet/rtr.go index 7d63114a..42fe32a4 100644 --- a/packet/rtr.go +++ b/packet/rtr.go @@ -160,7 +160,6 @@ func (m *RTRCacheResponse) Serialize() ([]byte, error) { type RTRIPPrefix struct { Version uint8 Type uint8 - SessionID uint16 Len uint32 Flags uint8 PrefixLen uint8 @@ -172,7 +171,6 @@ type RTRIPPrefix struct { func (m *RTRIPPrefix) DecodeFromBytes(data []byte) error { m.Version = data[0] m.Type = data[1] - m.SessionID = binary.BigEndian.Uint16(data[2:4]) m.Len = binary.BigEndian.Uint32(data[4:8]) m.Flags = data[8] m.PrefixLen = data[9] @@ -191,7 +189,6 @@ func (m *RTRIPPrefix) Serialize() ([]byte, error) { data := make([]byte, m.Len) data[0] = m.Version data[1] = m.Type - binary.BigEndian.PutUint16(data[2:4], m.SessionID) binary.BigEndian.PutUint32(data[4:8], m.Len) data[8] = m.Flags data[9] = m.PrefixLen -- cgit v1.2.3