Add the ability to skip address sync on unnumbered interfaces

This commit is contained in:
Pim van Pelt
2024-03-05 22:59:15 +01:00
parent c8dc522fe9
commit a960d64a87
6 changed files with 78 additions and 1 deletions

20
lcpng.c
View File

@ -95,6 +95,26 @@ lcp_sync (void)
return lcpm->lcp_sync;
}
void
lcp_set_sync_unnumbered (u8 is_sync)
{
lcp_main_t *lcpm = &lcp_main;
lcpm->lcp_sync_unnumbered = (is_sync != 0);
// If we set to 'on', do a one-off sync of LCP interfaces
if (is_sync)
lcp_itf_pair_sync_state_all ();
}
int
lcp_sync_unnumbered (void)
{
lcp_main_t *lcpm = &lcp_main;
return lcpm->lcp_sync_unnumbered;
}
void
lcp_set_auto_subint (u8 is_auto)
{