Librouteros
From MikroTik Wiki
librouteros is a free and open-source library written in C which abstracts the API provided by RouterOS. It was initially written in 2009 by Florian Forster and released under the GNU General Public License (GPL).
Features and design goals are:
- Ease of use: The library makes heavy use of callback functions which simplifies memory management.
- Strict ISO C99 and POSIX.1-2001 conformance.
- Thread and reentrant-safety.
- Abstraction from underlying network protocol.
- Well documented using manual pages.
Compiling
librouteros uses the autotools and libtool and can therefore be compiled and installed with the usual set of commands:
~ $ tar jxf librouteros-x.y.z.tar.bz2 ~ $ cd librouteros-x.y.z librouteros-x.y.z $ ./configure librouteros-x.y.z $ make librouteros-x.y.z $ make install
Dependencies
librouteros uses the gcrypt library from the GnuPG project to calculate the MD5-hash required for authenticating.