wide-dhcp6c(3)

截止目前为止,还能够正常使用wide-dhcp6c。 原因,暂时找不到原因在哪里。 只有通过打印日志来看。 一直怀疑是配置文件出错了,但是也没看到过一个可以使用的配置文件,dhcp6c.conf. 都是example等等,附加e文和缩写。 虽然看过,也是很粗糙的理解其意思。


先修改一下cftoken.l,将yywrap在cfdebug_print函数之前补上,这样make clean ,再make的时候,就不用再生成的cftoken.c 里面加了。

int yywrap()
{
	return 1;
}

static void
cfdebug_print(w, t, l)
	char *w, *t;
	int l;
{
	if (w) {
		dprintf(LOG_DEBUG, FNAME,
		    "<%d>%s [%s] (%d)", yy_start, w, t, l);
	} else {
		dprintf(LOG_DEBUG, FNAME,
		    "<%d>[%s] (%d)", yy_start, t, l);
	}
}


另外将YYDEBUG这个宏打开,设置为1。 同时将全局变量yydebug 也在最开始的地方赋值为1. 这样就可以看到过程中哪里分析错误了。

root@vc0718t-evm:/usrfs# ./dhcp6c -c ./dhcp6c.conf -Df eth0
Jan/01/2000 06:11:10: get_duid: extracted an existing DUID from /usr/share/dhcp6c_duid: 00:01:00:01:00:00:3a:35:00:16:8e:a7:8c:f6
Jan/01/2000 06:11:10: dhcp6_ctl_authinit: failed to open /usr/share/dhcp6cctlkey: No such file or directory
Jan/01/2000 06:11:10: client6_init: failed initialize control message authentication282
Jan/01/2000 06:11:10: client6_init: skip opening control port375
5
should !
Starting parse
no should !
Entering state 0
Reducing stack by rule 1 (line 149):
-> $$ = nterm statements ()
Stack now 0
Entering state 1
Reading a token: Next token is token INTERFACE ()
Shifting token INTERFACE ()
Entering state 3
Reading a token: Next token is token IFNAME ()
Shifting token IFNAME ()
Entering state 20
Reading a token: Next token is token BCL ()
Shifting token BCL ()
Entering state 40
Reducing 
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值