Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zebra: Always receive RS #15613

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions zebra/rtadv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1262,9 +1262,6 @@ static void rtadv_start_interface_events(struct zebra_vrf *zvrf,
return; /* Already added */

if_join_all_router(zvrf->rtadv.sock, zif->ifp);

if (adv_if_list_count(&zvrf->rtadv.adv_if) == 1)
rtadv_event(zvrf, RTADV_START, 0);
}

void ipv6_nd_suppress_ra_set(struct interface *ifp,
Expand Down Expand Up @@ -1292,9 +1289,6 @@ void ipv6_nd_suppress_ra_set(struct interface *ifp,
adv_if_free(adv_if);

if_leave_all_router(zvrf->rtadv.sock, ifp);

if (adv_if_list_count(&zvrf->rtadv.adv_if) == 0)
rtadv_event(zvrf, RTADV_STOP, 0);
}
} else {
if (!zif->rtadv.AdvSendAdvertisements) {
Expand Down Expand Up @@ -1836,6 +1830,9 @@ void rtadv_vrf_init(struct zebra_vrf *zvrf)
return;

zvrf->rtadv.sock = rtadv_make_socket(zvrf->zns->ns_id);

/* Always receive RS, no matter RA is disabled or not */
rtadv_event(zvrf, RTADV_START, 0);
}

void rtadv_vrf_terminate(struct zebra_vrf *zvrf)
Expand Down
Loading