共5条
1/1 1 跳转至页
请教vxwork中如何在pppoe拨号成功后,如何监视ppp的状态。
唉。。。举例如下:
{
char sbuf[255];
memset(sbuf,0,sizeof(sbuf));
pppParam = pfwParameterIdGet(pppSysFramework, "ipcp_primaryDnsAddr");
sprintf(sbuf,"%s%s","Remote:Negotiation Not Required,Not Negotiable:",
"61.139.2.69");
pfwProfileSet(pppSysProfile, pppParam,sbuf) ;
memset(sbuf,0,sizeof(sbuf));
pppParam = pfwParameterIdGet(pppSysFramework, "ipcp_secondaryDnsAddr");
sprintf(sbuf,"%s%s","Remote:Negotiation Not Required,Not Negotiable:",
"211.2.3.69");
pfwProfileSet(pppSysProfile, pppParam,sbuf) ; }
char sbuf[255];
memset(sbuf,0,sizeof(sbuf));
pppParam = pfwParameterIdGet(pppSysFramework, "ipcp_primaryDnsAddr");
sprintf(sbuf,"%s%s","Remote:Negotiation Not Required,Not Negotiable:",
"61.139.2.69");
pfwProfileSet(pppSysProfile, pppParam,sbuf) ;
memset(sbuf,0,sizeof(sbuf));
pppParam = pfwParameterIdGet(pppSysFramework, "ipcp_secondaryDnsAddr");
sprintf(sbuf,"%s%s","Remote:Negotiation Not Required,Not Negotiable:",
"211.2.3.69");
pfwProfileSet(pppSysProfile, pppParam,sbuf) ; }
共5条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |