mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
hostapd: Add global TERMINATE command
This will terminate the hostapd process. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
This commit is contained in:
parent
618f5d01b0
commit
3e67171846
@ -3164,6 +3164,8 @@ static void hostapd_global_ctrl_iface_receive(int sock, void *eloop_ctx,
|
||||
} else if (os_strncmp(buf, "INTERFACES", 10) == 0) {
|
||||
reply_len = hostapd_global_ctrl_iface_interfaces(
|
||||
interfaces, buf + 10, reply, sizeof(buffer));
|
||||
} else if (os_strcmp(buf, "TERMINATE") == 0) {
|
||||
eloop_terminate();
|
||||
} else {
|
||||
wpa_printf(MSG_DEBUG, "Unrecognized global ctrl_iface command "
|
||||
"ignored");
|
||||
|
Loading…
Reference in New Issue
Block a user