diff options
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 38 |
1 files changed, 20 insertions, 18 deletions
@@ -1,36 +1,32 @@ /* - * uAnytun + * anylike * - * uAnytun is a tiny implementation of SATP. Unlike Anytun which is a full - * featured implementation uAnytun has no support for multiple connections - * or synchronisation. It is a small single threaded implementation intended - * to act as a client on small platforms. - * The secure anycast tunneling protocol (satp) defines a protocol used - * for communication between any combination of unicast and anycast - * tunnel endpoints. It has less protocol overhead than IPSec in Tunnel - * mode and allows tunneling of every ETHER TYPE protocol (e.g. - * ethernet, ip, arp ...). satp directly includes cryptography and - * message authentication based on the methodes used by SRTP. It is - * intended to deliver a generic, scaleable and secure solution for - * tunneling and relaying of packets of any protocol. + * anylike is an IKEv2 Implementation written in Lua and C. It's main + * design goal is to provide anytun and uanytun or any other SATP + * implementation with a key exchange mechanism but it should also be + * possible to use anylike as key exchange daemon for IPSec security + * associations. The use of Lua guarantees that anylike is easily + * portable to many platforms including very small ones like wireless + * routers. * * - * Copyright (C) 2007-2008 Christian Pointner <equinox@anytun.org> + * Copyright (C) 2009-2010 Markus Grueneis <gimpf@anylike.org> + * Christian Pointner <equinox@anylike.org> * - * This file is part of uAnytun. + * This file is part of anylike. * - * uAnytun is free software: you can redistribute it and/or modify + * anylike is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * - * uAnytun is distributed in the hope that it will be useful, + * anylike is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with uAnytun. If not, see <http://www.gnu.org/licenses/>. + * along with anylike. If not, see <http://www.gnu.org/licenses/>. */ #include "datatypes.h" @@ -40,8 +36,10 @@ #include <stdlib.h> #include <stdio.h> +#ifndef _MSC_VER #define SYSLOG_NAMES #include <syslog.h> +#endif #include "log.h" @@ -66,7 +64,9 @@ log_target_type_t log_target_parse_type(const char* conf) if(!conf) return TARGET_UNKNOWN; +#ifndef _MSC_VER if(!strncmp(conf, "syslog", 6)) return TARGET_SYSLOG; +#endif if(!strncmp(conf, "file", 4)) return TARGET_FILE; if(!strncmp(conf, "stdout", 6)) return TARGET_STDOUT; if(!strncmp(conf, "stderr", 6)) return TARGET_STDERR; @@ -96,7 +96,9 @@ int log_targets_add(log_targets_t* targets, const char* conf) log_target_t* new_target = NULL; int duplicates_allowed = 0; switch(log_target_parse_type(conf)) { +#ifndef _MSC_VER case TARGET_SYSLOG: new_target = log_target_syslog_new(); break; +#endif case TARGET_FILE: new_target = log_target_file_new(); duplicates_allowed = 1; break; case TARGET_STDOUT: new_target = log_target_stdout_new(); break; case TARGET_STDERR: new_target = log_target_stderr_new(); break; |