version 1.1.1.1.4.2, 2014/07/30 09:05:19
|
version 1.1.1.2, 2016/11/02 10:45:57
|
Line 1
|
Line 1
|
/* $NetBSD: isakmp_cfg.c,v 1.24 2010/09/21 13:14:17 vanhu Exp $ */ | /* $NetBSD: isakmp_cfg.c,v 1.24.4.1 2013/04/12 10:04:21 tteras Exp $ */ |
|
|
/* Id: isakmp_cfg.c,v 1.55 2006/08/22 18:17:17 manubsd Exp */ |
/* Id: isakmp_cfg.c,v 1.55 2006/08/22 18:17:17 manubsd Exp */ |
|
|
Line 38
|
Line 38
|
#include <sys/socket.h> |
#include <sys/socket.h> |
#include <sys/queue.h> |
#include <sys/queue.h> |
|
|
|
#if __FreeBSD_version >= 900007 |
#include <utmpx.h> |
#include <utmpx.h> |
|
#endif |
#if defined(__APPLE__) && defined(__MACH__) |
#if defined(__APPLE__) && defined(__MACH__) |
#include <util.h> |
#include <util.h> |
#endif |
#endif |
Line 1000 isakmp_cfg_varlen(iph1, attr, string, len)
|
Line 1002 isakmp_cfg_varlen(iph1, attr, string, len)
|
struct isakmp_data *new; |
struct isakmp_data *new; |
char *data; |
char *data; |
|
|
|
if (!len) |
|
return NULL; |
|
|
if ((buffer = vmalloc(sizeof(*attr) + len)) == NULL) { |
if ((buffer = vmalloc(sizeof(*attr) + len)) == NULL) { |
plog(LLV_ERROR, LOCATION, NULL, "Cannot allocate memory\n"); |
plog(LLV_ERROR, LOCATION, NULL, "Cannot allocate memory\n"); |
return NULL; |
return NULL; |
Line 1660 isakmp_cfg_accounting_system(port, raddr, usr, inout)
|
Line 1665 isakmp_cfg_accounting_system(port, raddr, usr, inout)
|
char *usr; |
char *usr; |
int inout; |
int inout; |
{ |
{ |
|
#if __FreeBSD_version >= 900007 |
int error = 0; |
int error = 0; |
struct utmpx ut; |
struct utmpx ut; |
char addr[NI_MAXHOST]; |
char addr[NI_MAXHOST]; |
Line 1703 isakmp_cfg_accounting_system(port, raddr, usr, inout)
|
Line 1709 isakmp_cfg_accounting_system(port, raddr, usr, inout)
|
plog(LLV_ERROR, LOCATION, NULL, "Unepected inout\n"); |
plog(LLV_ERROR, LOCATION, NULL, "Unepected inout\n"); |
break; |
break; |
} |
} |
|
#endif |
|
|
return 0; |
return 0; |
} |
} |