免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3208 | 回复: 0
打印 上一主题 下一主题

uclinux 中的拨号问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-26 16:58 |只看该作者 |倒序浏览
我使用
pppd pty '/mnt/mtd/pppoe/bin/pppoe -I eth1' name test

打印出的log如下:
Micheal ---i= 3 open /dev/null
Micheal ---enter auth_check_options
Micheal --- user=test our_name=test
Micheal --- enter auth_check line 743
Micheal --- filename=/mnt/mtd/pppoe/pap-secrets
Micheal ---using pty device check
Micheal ---device name:
Micheal --- enter sys_init()
Micheal --- new_style_driver ppp_dev_fd=3
Micheal ---flags=2
Micheal ---sock_fd=4
Micheal ---init ok
Micheal ---getlogin=(unknown)
Micheal ---pppd 2.3.8 started by (unknown), uid 0
Micheal ---create linkpid file
Micheal --- open pid file
Micheal --- exit creater pidfile
Micheal --- enter 576
Micheal --- enter for loop
Micheal --- Get a pty master/slave pair if the pty
Micheal --- enter get_pty()
Micheal --- mfd=5, i=1ptyname=/dev/ptyp1
Micheal --- pty_name=/dev/ttyp1
Micheal --- sfd=6
MIcheal --- pty_slave=6
Micheal ---enter set_up_tty
Micheal ---enter set_up_tty 1006
Micheal ---enter set_up_tty 1009
Micheal ---crtscts=1
Micheal ---jump out switch
Micheal --- enter 1047
Micheal ---exit set_up_tty
Micheal ---line 650 debug
Micheal ---line 656 debug
Micheal ---line 671 debug
Micheal ---757
Micheal ---760
Micheal ---772
Micheal ---baud_rate=57600
Micheal ---set up the serial device
Micheal ---enter tty_establish_ppp
Micheal ---generic_establish_ppp
Micheal ---using channel 35Micheal ---Using version 0.0.0 of PPP driver
Micheal ---Using interface ppp0
Micheal ---create linkpid file
Micheal --- open pid file
Micheal --- exit creater pidfile
Micheal ---Connect: ppp0 <--> /dev/ttyp1
Micheal --- enter lcp_lowerup lcp.c line 405
Micheal ---set_xaccm: 00000000 00000000 00000000 60000000
Micheal ---send_config: mtu = 1500
Micheal ---send_config: asyncmap = ffffffff
Micheal ---fsm.c line 81 case initial
Micheal ---line 871
Micheal ---start protocol
Micheal ---lcp.c  line 348
Micheal ---fsm.c line 152
Micheal ---case closed
Micheal ---case closed re request
Micheal --- filename=/mnt/mtd/pppoe/pap-secrets
Micheal ---fd_ppp=5
Micheal ---getinput line 1181
Micheal --- new_style_driver=1
Micheal --- nr=-1 line 1252    // nr = read(ppp_fd, buf, len); 为什么返回-1
Micheal --- enter her 1185
Micheal --- open_ccp_flag=0
Micheal --- got_sigchld=1
Micheal ---getinput line 1181
Micheal --- new_style_driver=1
Micheal --- nr=-1 line 1252
Micheal --- enter her 1185
Micheal --- open_ccp_flag=0
Micheal --- got_sigchld=0
Micheal ---getinput line 1181
Micheal --- new_style_driver=1
Micheal --- nr=-1 line 1252
Micheal --- enter her 1185
Micheal --- open_ccp_flag=0
Micheal --- got_sigchld=0
Micheal ---getinput line 1181
Micheal --- new_style_driver=1
Micheal --- nr=-1 line 1252
Micheal --- enter her 1185
Micheal --- open_ccp_flag=0
Micheal --- got_sigchld=0
Micheal ---getinput line 1181
Micheal --- new_style_driver=1
Micheal --- nr=-1 line 1252
Micheal --- enter her 1185
Micheal --- open_ccp_flag=0
Micheal --- got_sigchld=0
Micheal ---getinput line 1181
Micheal --- new_style_driver=1
Micheal --- nr=-1 line 1252
Micheal --- enter her 1185
Micheal --- open_ccp_flag=0
Micheal --- got_sigchld=0
Micheal ---getinput line 1181
Micheal --- new_style_driver=1
Micheal --- nr=-1 line 1252
Micheal --- enter her 1185
Micheal --- open_ccp_flag=0
Micheal --- got_sigchld=0
Micheal ---getinput line 1181
Micheal --- new_style_driver=1
Micheal --- nr=-1 line 1252
Micheal --- enter her 1185
Micheal --- open_ccp_flag=0
Micheal --- got_sigchld=0
Micheal ---getinput line 1181
Micheal --- new_style_driver=1
Micheal --- nr=-1 line 1252
Micheal --- enter her 1185
Micheal --- open_ccp_flag=0
Micheal --- got_sigchld=0
Micheal ---getinput line 1181
Micheal --- new_style_driver=1
Micheal --- nr=-1 line 1252
Micheal --- enter her 1185
Micheal --- open_ccp_flag=0
Micheal --- got_sigchld=0
Micheal ---getinput line 1181
Micheal --- new_style_driver=1
Micheal --- nr=-1 line 1252
Micheal --- enter her 1185
Micheal --- open_ccp_flag=0
Micheal --- got_sigchld=0
Micheal ---924

我的 /dev下面有: ppp c 108 0]
                            ptyp0 ptyp1 ptys0 pty s1 ttyp0 ttyp1 ttys0 ttys1
ifconfig,结果就是不出现ppp0
我怀疑是上面的nr=-1引起的,但是到底是什么原因导致 read(ppp_fd, buf, len)=-1呢????
大虾们救命啊!!!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP