Add the ability to skip address sync on unnumbered interfaces
This commit is contained in:
20
lcpng.c
20
lcpng.c
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user