5 int do_loop_enable (int argc, const char **argv UNUSED, struct ngadmin *nga)
11 printf("this command takes no argument\n");
15 i = ngadmin_setLoopDetectionState(nga, 1);
23 int do_loop_disable (int argc, const char **argv UNUSED, struct ngadmin *nga)
29 printf("this command takes no argument\n");
33 i = ngadmin_setLoopDetectionState(nga, 0);
41 int do_loop_show (int argc, const char **argv UNUSED, struct ngadmin *nga)
44 const struct swi_attr *sa;
48 printf("this command takes no argument\n");
52 sa = ngadmin_getCurrentSwitch(nga);
54 printf("must be logged\n");
58 i = ngadmin_getLoopDetectionState(nga, &s);
64 printf("loop detection is %s\n", s ? "enabled" : "disabled");