From 09d8ca45a5f0711ae28988ccfbaf917439c31b44 Mon Sep 17 00:00:00 2001 From: Håkon Nessjøen Date: Wed, 16 Feb 2011 19:13:27 +0100 Subject: Rewrote MNDP parser, and added MNDP broadcast routines for mactelnetd. Thanks to "Marcin Ulikowski" for MNDP reverse engineering. mactelnetd will now be recognized by other routeros devices/applications as neighbours. --- config.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index 15fce0d..cab40be 100644 --- a/config.h +++ b/config.h @@ -3,4 +3,39 @@ #define DEBUG 0 +#if defined(__APPLE__) && defined(__MACH__) +#define PLATFORM_NAME "Mac OS X" + +#elif defined(__FreeBSD__) +#define PLATFORM_NAME "FreeBSD" + +#elif defined(__NetBSD__) +#define PLATFORM_NAME "NetBSD" + +#elif defined(__OpenBSD__) +#define PLATFORM_NAME "OpenBSD" + +#elif defined(__MINT__) +#define PLATFORM_NAME "FreeMiNT" + +#elif defined(__bsdi__) +#define PLATFORM_NAME "BSD/OS" + +#elif defined(linux) || defined(__linux__) +#define PLATFORM_NAME "Linux" + +#elif defined(sun) +#define PLATFORM_NAME "Solaris" + +#elif defined(__hpux) +#define PLATFORM_NAME "HPUX" + +#elif defined(__riscos__) +#define PLATFORM_NAME "RISC OS" + +#else +#define PLATFORM_NAME "Unknown" + +#endif + #endif -- cgit v1.2.3