Use TFTP spinner for NMRP too

This commit is contained in:
Joseph C. Lehner 2024-09-30 11:58:47 +02:00
parent b55f42b764
commit 20fb82ab3a

9
nmrp.c
View file

@ -558,12 +558,15 @@ int nmrp_do(struct nmrpd_args *args)
timeout = args->blind ? 10 : NMRP_ADVERTISE_TIMEOUT;
beg = time_monotonic();
printf("Advertising NMRP server on %s ... ", args->intf);
while (!g_interrupted) {
printf("\rAdvertising NMRP server on %s ... %c",
args->intf, spinner[i]);
fflush(stdout);
i = (i + 1) & 3;
printf("%c ", spinner[i]);
fflush(stdout);
printf("\b\b");
was_plugged_in |= !ethsock_is_unplugged(sock);
if (pkt_send(sock, &tx) < 0) {