From bb72634dede7e28e47dc301015c28ff84402c60f Mon Sep 17 00:00:00 2001 From: Christian Giese Date: Wed, 23 Jun 2021 13:44:45 +0200 Subject: [PATCH] Do not send IPv6 RS for L2TP sessions to BBL For L2TP sessions to BNG Blaster LNS do not send IPv6 RS. --- src/bbl_rx.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/bbl_rx.c b/src/bbl_rx.c index 20f73ce1..7cbce1de 100644 --- a/src/bbl_rx.c +++ b/src/bbl_rx.c @@ -958,8 +958,10 @@ bbl_rx_ip6cp(bbl_ethernet_header_t *eth, bbl_interface_s *interface, bbl_session session->link_local_ipv6_address[0] = 0xfe; session->link_local_ipv6_address[1] = 0x80; *(uint64_t*)&session->link_local_ipv6_address[8] = session->ip6cp_ipv6_identifier; - session->send_requests |= BBL_SEND_ICMPV6_RS; - bbl_session_tx_qnode_insert(session); + if(session->l2tp == false) { + session->send_requests |= BBL_SEND_ICMPV6_RS; + bbl_session_tx_qnode_insert(session); + } break; default: break; @@ -990,8 +992,10 @@ bbl_rx_ip6cp(bbl_ethernet_header_t *eth, bbl_interface_s *interface, bbl_session session->link_local_ipv6_address[0] = 0xfe; session->link_local_ipv6_address[1] = 0x80; *(uint64_t*)&session->link_local_ipv6_address[8] = session->ip6cp_ipv6_identifier; - session->send_requests |= BBL_SEND_ICMPV6_RS; - bbl_session_tx_qnode_insert(session); + if(session->l2tp == false) { + session->send_requests |= BBL_SEND_ICMPV6_RS; + bbl_session_tx_qnode_insert(session); + } break; default: break;