提交 689ae47e 编写于 作者: D Dmitry Kozlov

ipoe: fixed session lookup without option 82

Signed-off-by: NDmitry Kozlov <xeb@mail.ru>
上级 dafe0eb3
......@@ -181,7 +181,7 @@ static struct ipoe_session *ipoe_session_lookup(struct ipoe_serv *serv, struct d
}
list_for_each_entry(ses, &serv->sessions, entry) {
opt82_match = 1;
opt82_match = pack->relay_agent != NULL;
if (agent_circuit_id && !ses->agent_circuit_id)
opt82_match = 0;
......@@ -1104,7 +1104,7 @@ static void ipoe_ses_recv_dhcpv4(struct dhcpv4_serv *dhcpv4, struct dhcpv4_packe
agent_remote_id = NULL;
}
opt82_match = 1;
opt82_match = pack->relay_agent != NULL;
if (agent_circuit_id && !ses->agent_circuit_id)
opt82_match = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册