bool do_firmware_upgrade (int nb, const char **com, struct ngadmin *nga);
+// help
+bool do_help (int nb, const char **com, struct ngadmin *nga);
+
+
// igmp
bool do_igmp_set (int nb, const char **com, struct ngadmin *nga);
bool do_igmp_show (int nb, const char **com, struct ngadmin *nga);
// vlan
+bool do_vlan_8021q_del (int nb, const char **com, struct ngadmin *nga);
+bool do_vlan_8021q_set (int nb, const char **com, struct ngadmin *nga);
bool do_vlan_8021q_show (int nb, const char **com, struct ngadmin *nga);
+bool do_vlan_mode_set (int nb, const char **com, struct ngadmin *nga);
bool do_vlan_mode_show (int nb UNUSED, const char **com UNUSED, struct ngadmin *nga);
+bool do_vlan_pvid_set (int nb, const char **com, struct ngadmin *nga);
bool do_vlan_pvid_show (int nb, const char **com, struct ngadmin *nga);
COM_TERM(upgrade, do_firmware_upgrade, true)
COM_END
+ COM_TERM(help, do_help, false)
+
COM_START(igmp)
COM_TERM(set, do_igmp_set, true)
COM_TERM(show, do_igmp_show, false)
COM_START(vlan)
COM_START(802.1q)
- COM_START(port)
- COM_TERM(add, NULL, true)
- COM_TERM(del, NULL, true)
- COM_END
+ COM_TERM(del, do_vlan_8021q_del, true)
+ COM_TERM(set, do_vlan_8021q_set, true)
COM_TERM(show, do_vlan_8021q_show, true)
- COM_START(vlan)
- COM_TERM(add, NULL, true)
- COM_TERM(del, NULL, true)
- COM_TERM(flush, NULL, true)
- COM_END
COM_END
COM_START(mode)
- COM_TERM(set, NULL, true)
+ COM_TERM(set, do_vlan_mode_set, true)
COM_TERM(show, do_vlan_mode_show, false)
COM_END
COM_START(port)
+ COM_TERM(set, NULL, true)
+ COM_TERM(show, NULL, false)
COM_END
COM_START(pvid)
- COM_TERM(set, NULL, true)
+ COM_TERM(set, do_vlan_pvid_set, true)
COM_TERM(show, do_vlan_pvid_show, false)
COM_END
COM_END