diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-06-23 23:57:24 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-06-23 23:57:24 +0400 |
commit | c9fd1cb12b850540af53bbe906f49e4cf28ed391 (patch) | |
tree | c8f7458372110133b21bd4eba398fd7fe11368b2 /accel-pppd/ctrl/ipoe | |
parent | 4ebb5edd1567a3361c12af0fa452fdf5cc0a04ff (diff) | |
download | accel-ppp-c9fd1cb12b850540af53bbe906f49e4cf28ed391.tar.gz accel-ppp-c9fd1cb12b850540af53bbe906f49e4cf28ed391.zip |
ipoe: fixed detection of opt82 change (v2)
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index ce04656..f97c537 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -150,9 +150,9 @@ static struct ipoe_session *ipoe_session_lookup(struct ipoe_serv *serv, struct d } list_for_each_entry(ses, &serv->sessions, entry) { - opt82_match = pack->relay_agent != NULL; + opt82_match = 1; - if (opt82_match && agent_circuit_id && !ses->agent_circuit_id) + if (agent_circuit_id && !ses->agent_circuit_id) opt82_match = 0; if (opt82_match && agent_remote_id && !ses->agent_remote_id) @@ -983,9 +983,9 @@ static void ipoe_ses_recv_dhcpv4(struct dhcpv4_serv *dhcpv4, struct dhcpv4_packe agent_remote_id = NULL; } - opt82_match = pack->relay_agent == NULL; + opt82_match = 1; - if (opt82_match && agent_circuit_id && !ses->agent_circuit_id) + if (agent_circuit_id && !ses->agent_circuit_id) opt82_match = 0; if (opt82_match && agent_remote_id && !ses->agent_remote_id) |