diff options
author | Eiichiro Watanabe <a16tochjp@gmail.com> | 2015-12-09 00:52:35 +0900 |
---|---|---|
committer | Eiichiro Watanabe <a16tochjp@gmail.com> | 2015-12-09 12:30:49 +0900 |
commit | ea9a6b8c24523f15dac9f275fc91b6d2de57f8af (patch) | |
tree | 478cc0d8b3c5e084defa36587a87e2fedfaad403 /packet | |
parent | c806da563e97da617402ca79b2b1df91cf2bdce5 (diff) |
packet: remove SessionID field from RTRIPPrefix
* Session ID field is not defined in IPvxPrefix PDUs in RFC6810
Diffstat (limited to 'packet')
-rw-r--r-- | packet/rtr.go | 3 |
1 files changed, 0 insertions, 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 |