提交 a3854c8e 编写于 作者: D Dmitry Kozlov

ipoe: use router option from upper dhcp reply

上级 8b87afdb
......@@ -1217,6 +1217,10 @@ static void ipoe_ses_recv_dhcpv4_relay(struct ipoe_session *ses)
if (opt)
ses->mask = parse_dhcpv4_mask(ntohl(*(uint32_t *)opt->data));
opt = dhcpv4_packet_find_opt(pack, 3);
if (opt)
ses->router = *(uint32_t *)opt->data;
if (pack->msg_type == DHCPOFFER) {
if (ses->ses.state == AP_STATE_STARTING) {
triton_timer_del(&ses->timer);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册