code: func (n *RegisteredNexthop) DecodeFromBytes(data []byte) error {
  	// Connected (1 byte)
  	n.Connected = uint8(data[0])
  	// Address Family (2 bytes)
  	n.Family = binary.BigEndian.Uint16(data[1:3])
  	// Note: Ignores Prefix Length (1 byte)
  	addrByteLen := (int(data[3]) + 7) / 8
  	// Prefix (variable)
  	n.Prefix = ipFromFamily(uint8(n.Family), data[4:4+addrByteLen])
  
  	return nil
  }
docs: // Reference: zserv_nexthop_register in zebra/zserv.c of Quagga1.2.x (ZAPI3)
  // Reference: zserv_rnh_register in zebra/zserv.c of FRR3.x (ZAPI4)
  // Reference: zread_rnh_register in zebra/zapi_msg.c of FRR5.x (ZAPI5)