当前位置: 技术问答>linux和unix
用Linux做接入服务器,哪位大哥给指条明路?
来源: 互联网 发布时间:2015-05-16
本文导语: 就是想实现一个PPPOE+RADIUS的认证方式,可PPPOE接入不清楚怎么配? | pppd好像由问题! 打patch diff -Naur ppp-2.4.2b3/pppd/main.c new-ppp-2.4.2b3/pppd/main.c --- ppp-2.4.2b3/pppd/main.c 2003-04-07 08:01:45.000000000 +0800 ++...
就是想实现一个PPPOE+RADIUS的认证方式,可PPPOE接入不清楚怎么配?
|
pppd好像由问题!
打patch
diff -Naur ppp-2.4.2b3/pppd/main.c new-ppp-2.4.2b3/pppd/main.c
--- ppp-2.4.2b3/pppd/main.c 2003-04-07 08:01:45.000000000 +0800
+++ new-ppp-2.4.2b3/pppd/main.c 2003-10-14 15:03:11.000000000 +0800
@@ -1533,6 +1533,9 @@
int fd1 = in, fd2 = out, fd3 = log_to_fd;
in = dup(in);
+ while((in ==0) || (in ==1) ||(in== 2)){
+ in = dup(in);
+ }
out = dup(out);
if (log_to_fd >= 0) {
errfd = dup(log_to_fd);
打patch
diff -Naur ppp-2.4.2b3/pppd/main.c new-ppp-2.4.2b3/pppd/main.c
--- ppp-2.4.2b3/pppd/main.c 2003-04-07 08:01:45.000000000 +0800
+++ new-ppp-2.4.2b3/pppd/main.c 2003-10-14 15:03:11.000000000 +0800
@@ -1533,6 +1533,9 @@
int fd1 = in, fd2 = out, fd3 = log_to_fd;
in = dup(in);
+ while((in ==0) || (in ==1) ||(in== 2)){
+ in = dup(in);
+ }
out = dup(out);
if (log_to_fd >= 0) {
errfd = dup(log_to_fd);
|
参考:
http://expert.csdn.net/Expert/topic/2320/2320502.xml?temp=.3430902
http://expert.csdn.net/Expert/topic/2320/2320502.xml?temp=.3430902
|
请关注。
|
我也没听说过,学习吧
|
up
|
mark
|
顶一下
|
顶