diff options
-rw-r--r-- | packet/rtr.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet/rtr.go b/packet/rtr.go index 8eca54f3..7d63114a 100644 --- a/packet/rtr.go +++ b/packet/rtr.go @@ -189,8 +189,8 @@ func (m *RTRIPPrefix) DecodeFromBytes(data []byte) error { func (m *RTRIPPrefix) Serialize() ([]byte, error) { data := make([]byte, m.Len) - data[0] = m.Type - data[1] = m.Version + 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 |