Add CLI for lcp-auto-subint

In preparation of another feature 'netlink-auto-subint', rename
lcp_main's field to "lcp_auto_subint".

Add CLI .short_help = "lcp lcp-auto-subint [on|enable|off|disable]"

Show status of the field on "lcp show" output.
This commit is contained in:
Pim van Pelt
2021-08-15 14:45:04 +02:00
parent c2adb3262d
commit d23aab2d95
6 changed files with 45 additions and 12 deletions

View File

@ -70,19 +70,19 @@ int lcp_set_default_ns(u8 *ns) {
}
void
lcp_set_auto_subint (u8 is_auto)
lcp_set_lcp_auto_subint (u8 is_auto)
{
lcp_main_t *lcpm = &lcp_main;
lcpm->auto_subint = (is_auto != 0);
lcpm->lcp_auto_subint = (is_auto != 0);
}
int
lcp_auto_subint (void)
lcp_lcp_auto_subint (void)
{
lcp_main_t *lcpm = &lcp_main;
return lcpm->auto_subint;
return lcpm->lcp_auto_subint;
}
/*