summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c8
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)