Skip to content

Commit 4b4c67d

Browse files
committed
PPPoE PADI sent to unicast address (#381)
1 parent 25e2b12 commit 4b4c67d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

code/bngblaster/src/bbl_session.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,10 @@ bbl_session_update_state(bbl_session_s *session, session_state_t new_state)
569569
clock_gettime(CLOCK_MONOTONIC, &g_ctx->timestamp_established);
570570
}
571571
bbl_tun_session_up(session);
572+
} else if(new_state == BBL_PPPOE_INIT) {
573+
if(old_state == BBL_PPPOE_REQUEST) {
574+
bbl_session_reset(session);
575+
}
572576
} else if(new_state == BBL_PPP_TERMINATING) {
573577
if(session->ipcp_state > BBL_PPP_DISABLED) {
574578
session->ipcp_state = BBL_PPP_CLOSED;

0 commit comments

Comments
 (0)