#include <unistd.h>
#include <string.h>
#include "ap-utils.h"
-#include "ap-curses.h"
#define MAX_LINES LINES-6
#define PACKET_ERROR _("AuthorizedMacTableString packet error")
#define MAC_ADD _("Enter MAC: ")
#define MAC_DEL _("Delete Num: ")
#define MAC_TITLE _("Authorized MAC addresses")
-#define MAC_HEADER _("NUM MAC address")
+#define MAC_HEADER _("NUM MAC address")
#define MAC_HELP _("A - auth; N - new; D - del; arrows - scroll; W - write conf; Q - quit")
extern WINDOW *main_sub;
print_helperr(ERR_RET);
goto exit;
}
- print_title(MAC_TITLE);
+ print_top(NULL, MAC_TITLE);
auth_mac = *(varbinds[0].value);
sprintf(message, "%s%s", MAC_AUTH, (auth_mac == 1) ? ON : OFF);
mvwaddstr(main_sub, 0, 0, message);
- mvwaddstr(main_sub, 2, 5, MAC_HEADER);
+ mvwaddstr(main_sub, 2, 1, MAC_HEADER);
wrefresh(main_sub);
total_mac = 0;
}
if (AuthMac)
free(AuthMac);
- print_title("");
+ print_top(NULL, NULL);
clear_main(0);
}
char destroy = 6, create = 4, allow = 1;
int i, auth_mac = 0, mac_num = 0, begin, end;
varbind varbinds[3];
- print_title(MAC_TITLE);
+ print_top(NULL, MAC_TITLE);
mvwaddstr(main_sub, 2, 5, MAC_HEADER);
wrefresh(main_sub);
first = curr->next;
free(curr);
}
- print_title("");
+ print_top(NULL, NULL);
clear_main(0);
}