8 bool do_bitrate_set (int nb, const char **com, struct ngadmin *nga);
9 bool do_bitrate_show (int nb, const char **com, struct ngadmin *nga);
13 bool do_cabletest (int nb, const char **com, struct ngadmin *nga);
17 bool do_defaults (int nb, const char **com, struct ngadmin *nga);
21 bool do_firmware_show (int nb, const char **com, struct ngadmin *nga);
22 bool do_firmware_upgrade (int nb, const char **com, struct ngadmin *nga);
26 bool do_help (int nb, const char **com, struct ngadmin *nga);
30 bool do_igmp_set (int nb, const char **com, struct ngadmin *nga);
31 bool do_igmp_show (int nb, const char **com, struct ngadmin *nga);
35 bool do_list (int nb, const char **com, struct ngadmin *nga);
39 bool do_login (int nb, const char **com, struct ngadmin *nga);
43 bool do_mirror_disable (int nb, const char **com, struct ngadmin *nga);
44 bool do_mirror_set (int nb, const char **com, struct ngadmin *nga);
45 bool do_mirror_show (int nb, const char **com, struct ngadmin *nga);
49 bool do_name_show (int nb, const char **com, struct ngadmin *nga);
50 bool do_name_set (int nb, const char **com, struct ngadmin *nga);
51 bool do_name_clear (int nb, const char **com, struct ngadmin *nga);
55 bool do_netconf_set (int nb, const char **com, struct ngadmin *nga);
59 bool do_password_change (int nb, const char **com, struct ngadmin *nga);
60 bool do_password_set (int nb, const char **com, struct ngadmin *nga);
64 bool do_ports_state (int nb, const char **com, struct ngadmin *nga);
65 bool do_ports_statistics_reset (int nb, const char **com, struct ngadmin *nga);
66 bool do_ports_statistics_show (int nb, const char **com, struct ngadmin *nga);
70 bool do_qos_mode (int nb, const char **com, struct ngadmin *nga);
71 bool do_qos_set (int nb, const char **com, struct ngadmin *nga);
72 bool do_qos_show (int nb, const char **com, struct ngadmin *nga);
76 bool do_quit (int nb, const char **com, struct ngadmin *nga);
80 bool do_restart (int nb, const char **com, struct ngadmin *nga);
84 bool do_scan (int nb, const char **com, struct ngadmin *nga);
88 bool do_stormfilter_enable (int nb, const char **com, struct ngadmin *nga);
89 bool do_stormfilter_disable (int nb, const char **com, struct ngadmin *nga);
90 bool do_stormfilter_set (int nb, const char **com, struct ngadmin *nga);
91 bool do_stormfilter_show (int nb, const char **com, struct ngadmin *nga);
95 bool do_tree (int nb, const char **com, struct ngadmin *nga);
99 bool do_vlan_8021q_del (int nb, const char **com, struct ngadmin *nga);
100 bool do_vlan_8021q_set (int nb, const char **com, struct ngadmin *nga);
101 bool do_vlan_8021q_show (int nb, const char **com, struct ngadmin *nga);
102 bool do_vlan_mode_set (int nb, const char **com, struct ngadmin *nga);
103 bool do_vlan_mode_show (int nb UNUSED, const char **com UNUSED, struct ngadmin *nga);
104 bool do_vlan_pvid_set (int nb, const char **com, struct ngadmin *nga);
105 bool do_vlan_pvid_show (int nb, const char **com, struct ngadmin *nga);
109 // commands structure
113 COM_TERM(set, do_bitrate_set, true)
114 COM_TERM(show, do_bitrate_show, false)
117 COM_TERM(cabletest, do_cabletest, true)
119 COM_TERM(defaults, do_defaults, false)
122 COM_TERM(show, do_firmware_show, false)
123 COM_TERM(upgrade, do_firmware_upgrade, true)
126 COM_TERM(help, do_help, false)
129 COM_TERM(set, do_igmp_set, true)
130 COM_TERM(show, do_igmp_show, false)
133 COM_TERM(list, do_list, false)
135 COM_TERM(login, do_login, true)
138 COM_TERM(disable, do_mirror_disable, false)
139 COM_TERM(set, do_mirror_set, true)
140 COM_TERM(show, do_mirror_show, false)
144 COM_TERM(show, do_name_show, false)
145 COM_TERM(set, do_name_set, true)
146 COM_TERM(clear, do_name_clear, false)
150 COM_TERM(set, do_netconf_set, true)
154 COM_TERM(change, do_password_change, true)
155 COM_TERM(set, do_password_set, true)
159 COM_TERM(state, do_ports_state, false)
160 COM_START(statistics)
161 COM_TERM(reset, do_ports_statistics_reset, false)
162 COM_TERM(show, do_ports_statistics_show, false)
167 COM_TERM(mode, do_qos_mode, true)
168 COM_TERM(set, do_qos_set, true)
169 COM_TERM(show, do_qos_show, false)
172 COM_TERM(quit, do_quit, false)
174 COM_TERM(restart, do_restart, false)
176 COM_TERM(scan, do_scan, false)
178 COM_START(stormfilter)
179 COM_TERM(enable, do_stormfilter_enable, false)
180 COM_TERM(disable, do_stormfilter_disable, false)
181 COM_TERM(set, do_stormfilter_set, true)
182 COM_TERM(show, do_stormfilter_show, false)
185 COM_TERM(tree, do_tree, false)
189 COM_TERM(del, do_vlan_8021q_del, true)
190 COM_TERM(set, do_vlan_8021q_set, true)
191 COM_TERM(show, do_vlan_8021q_show, true)
194 COM_TERM(set, do_vlan_mode_set, true)
195 COM_TERM(show, do_vlan_mode_show, false)
198 COM_TERM(set, NULL, true)
199 COM_TERM(show, NULL, false)
202 COM_TERM(set, do_vlan_pvid_set, true)
203 COM_TERM(show, do_vlan_pvid_show, false)