欢迎来到天天文库
浏览记录
ID:5949565
大小:88.50 KB
页数:12页
时间:2017-12-29
《解决linux下联通用户下载联通客户端上网的方法》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、解决Linux下联通用户下载联通客户端Dr.com上网的方法方法一:环境是Ubuntu12.041.安装drcom-1.4.8.3,(版本老了)点我下载(请管理员贴上下载链接)2.安装结束后,编辑一下drcom.conf代码:sudogedit/etc/drcom.conf根据下面的填写:1username=填写你的帐号2password=密码3device=eth04except=10.0.0.0/255.0.0.0,192.168.0.0/255.255.0.0,172.16.0.0/255.240.0.0,127.0.0.0/255.0.0
2、.05dnsp=网络中心提供的DNS服务器,跟eth0里配置的一样6dnss=网络中心提供的DNS服务器,跟eth0里配置的一样7dhcp=89hostip=10servip=你们学校的验证服务器地址11hostport=12servport=61440(保持61440不变)1314hostname=15winver=16winbuild=17servicepack=18autologout=03.至此,若无意外应该可以登录了。11)启动drcomd23$sudodrcomd452)登录67$drcomclogin893)退出1011$drcom
3、clogout方法二:drcom配合PPP0拨号上网源码newdrcom.c文件,编译执行。(请管理员写进.c文件方便下载)1#include2#include3#include4#include5#include6#include7#include8#include9#include10#include11#include4、h>1213//#defineNO_ERRLOG11415typedefstruct{16charbSignture;17charbPacketID;18shortwLength;19shortwSeq;20shortwReserved;21}DRCOM_CODE1,*PDRCOM_CODE1;2223typedefstruct{24charbSignture;25charbPacketID;26shortwLength;27shortwSeq;28shortwReserved;29intdwCode0;30intdwCode1;31}DRCOM5、_CODE2,*PDRCOM_CODE2;3233typedefstruct{34charszAddress[6];35charbDhcp;36charbDevType;37intdwIpAddr;38intdwIpMask;39}NIFS,*PNIFS;4041typedefstruct{42charbSignture;1charbPacketID;2shortwLength;3shortwSeq;4intdwUnk0;5shortwReserved0;6intdwCode1;7intdwMode;8intdwCode0;9intdwCheck6、sum;10intdwUnk1;11NIFSNetIfs[4];12}DRCOM_CODE3,*PDRCOM_CODE3;1314typedefstruct{15charuninterested_xx;16}DRCOM_CODE4,*PDRCOM_CODE4;1718typedefstruct{19charbSignture;20charbPacketID;21shortwLength;22shortwSeq;23shortwCurrentVer;24shortwRand;25shortwReserved0;26intdwReserved0;277、intdwKey0;28intdwKey1;29intdwChecksum;30intdwCode1;31intdwReserved1;32intdwReserved2;33}DRCOM_UPDATEINFO,*PDRCOM_UPDATEINFO;3435#defineLOGFILE_ERR"drcom.err"3637intlog_err(char*fmt,...)38{39va_listargs;40structtm*tm;41time_tcur_time;42chartimebuf[256];43charbuf[1024];44intfd_8、log;12#ifdefNO_ERRLOG3return0;4#endif56va_start(args,fmt);7vsnprintf
4、h>1213//#defineNO_ERRLOG11415typedefstruct{16charbSignture;17charbPacketID;18shortwLength;19shortwSeq;20shortwReserved;21}DRCOM_CODE1,*PDRCOM_CODE1;2223typedefstruct{24charbSignture;25charbPacketID;26shortwLength;27shortwSeq;28shortwReserved;29intdwCode0;30intdwCode1;31}DRCOM
5、_CODE2,*PDRCOM_CODE2;3233typedefstruct{34charszAddress[6];35charbDhcp;36charbDevType;37intdwIpAddr;38intdwIpMask;39}NIFS,*PNIFS;4041typedefstruct{42charbSignture;1charbPacketID;2shortwLength;3shortwSeq;4intdwUnk0;5shortwReserved0;6intdwCode1;7intdwMode;8intdwCode0;9intdwCheck
6、sum;10intdwUnk1;11NIFSNetIfs[4];12}DRCOM_CODE3,*PDRCOM_CODE3;1314typedefstruct{15charuninterested_xx;16}DRCOM_CODE4,*PDRCOM_CODE4;1718typedefstruct{19charbSignture;20charbPacketID;21shortwLength;22shortwSeq;23shortwCurrentVer;24shortwRand;25shortwReserved0;26intdwReserved0;27
7、intdwKey0;28intdwKey1;29intdwChecksum;30intdwCode1;31intdwReserved1;32intdwReserved2;33}DRCOM_UPDATEINFO,*PDRCOM_UPDATEINFO;3435#defineLOGFILE_ERR"drcom.err"3637intlog_err(char*fmt,...)38{39va_listargs;40structtm*tm;41time_tcur_time;42chartimebuf[256];43charbuf[1024];44intfd_
8、log;12#ifdefNO_ERRLOG3return0;4#endif56va_start(args,fmt);7vsnprintf
此文档下载收益归作者所有