Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Achou.Wang
accel-ppp
提交
2f29e750
A
accel-ppp
项目概览
Achou.Wang
/
accel-ppp
通知
6
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
accel-ppp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2f29e750
编写于
11月 30, 2010
作者:
K
Kozlov Dmitry
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
print version number on startup
上级
575d140f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
22 addition
and
5 deletion
+22
-5
accel-pptpd/CMakeLists.txt
accel-pptpd/CMakeLists.txt
+16
-2
accel-pptpd/cli/telnet.c
accel-pptpd/cli/telnet.c
+1
-2
accel-pptpd/log.c
accel-pptpd/log.c
+3
-1
accel-pptpd/main.c
accel-pptpd/main.c
+2
-0
未找到文件。
accel-pptpd/CMakeLists.txt
浏览文件 @
2f29e750
...
...
@@ -12,7 +12,21 @@ IF (NOT HAVE_SSL)
ENDIF
(
NOT HAVE_SSL
)
SET
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-Wall -fvisibility=hidden -D_GNU_SOURCE -DPTHREAD_SPINLOCK -DMEMDEBUG -fPIC"
)
#SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fvisibility=hidden -D_GNU_SOURCE -DFUTEX_SPINLOCK -DMEMDEBUG -fPIC")
IF
(
EXISTS
${
CMAKE_HOME_DIRECTORY
}
/.git
)
EXECUTE_PROCESS
(
COMMAND git log
COMMAND head -n1
COMMAND awk
"{print $2}"
WORKING_DIRECTORY
${
CMAKE_HOME_DIRECTORY
}
OUTPUT_VARIABLE ACCEL_PPTP_VERSION
)
STRING
(
STRIP
${
ACCEL_PPTP_VERSION
}
ACCEL_PPTP_VERSION
)
ELSE
(
EXISTS
${
CMAKE_HOME_DIRECTORY
}
/.git
)
SET
(
ACCEL_PPTP_VERSION
${
CMAKE_HOME_DIRECTORY
}
/
"1.3-rc"
)
ENDIF
(
EXISTS
${
CMAKE_HOME_DIRECTORY
}
/.git
)
ADD_DEFINITIONS
(
-DACCEL_PPTP_VERSION=
"
${
ACCEL_PPTP_VERSION
}
"
)
INCLUDE_DIRECTORIES
(
include
)
...
...
@@ -21,7 +35,7 @@ IF (NOT DEFINED RADIUS)
ENDIF
(
NOT DEFINED RADIUS
)
IF
(
RADIUS
)
ADD_DEFINITIONS
(
"-DRADIUS"
)
ADD_DEFINITIONS
(
-DRADIUS
)
ADD_SUBDIRECTORY
(
radius
)
ENDIF
(
RADIUS
)
...
...
accel-pptpd/cli/telnet.c
浏览文件 @
2f29e750
...
...
@@ -20,7 +20,6 @@
#include "cli_p.h"
#define RECV_BUF_SIZE 1024
#define BANNER "accel-pptp-1.3-rc1\r\n"
#define AUTH_FAILED "\r\nAuthentication failed\r\n"
#define ESC_LEFT "[D"
...
...
@@ -167,7 +166,7 @@ static int cli_client_sendv(struct cli_client_t *tcln, const char *fmt, va_list
static
int
send_banner
(
struct
telnet_client_t
*
cln
)
{
return
telnet_send
(
cln
,
BANNER
,
sizeof
(
BANNER
));
return
telnet_send
(
cln
,
"accel-pptp version "
ACCEL_PPTP_VERSION
"
\r\n
"
,
sizeof
(
"accel-pptp version "
ACCEL_PPTP_VERSION
"
\r\n
"
));
}
static
int
send_config
(
struct
telnet_client_t
*
cln
)
...
...
accel-pptpd/log.c
浏览文件 @
2f29e750
...
...
@@ -34,7 +34,7 @@ struct _log_msg_t
uint8_t
refs
;
};
static
int
log_level
=
10
;
static
int
log_level
;
static
LIST_HEAD
(
targets
);
static
mempool_t
msg_pool
;
...
...
@@ -454,6 +454,7 @@ static void __init log_init(void)
.
sa_handler
=
sighup
,
};
opt
=
conf_get_opt
(
"log"
,
"level"
);
if
(
opt
&&
atoi
(
opt
)
>=
0
)
log_level
=
atoi
(
opt
);
...
...
@@ -477,5 +478,6 @@ static void __init log_init(void)
chunk_pool
=
mempool_create
(
sizeof
(
struct
log_chunk_t
)
+
LOG_CHUNK_SIZE
+
1
);
sigaction
(
SIGHUP
,
&
sa
,
NULL
);
}
accel-pptpd/main.c
浏览文件 @
2f29e750
...
...
@@ -145,6 +145,8 @@ int main(int argc, char **argv)
if
(
triton_load_modules
(
"modules"
))
return
EXIT_FAILURE
;
log_msg
(
"accel-pptp version %s
\n
"
,
ACCEL_PPTP_VERSION
);
triton_run
();
sigfillset
(
&
set
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录