Use TFTP spinner for NMRP too
This commit is contained in:
parent
b55f42b764
commit
20fb82ab3a
1 changed files with 6 additions and 3 deletions
9
nmrp.c
9
nmrp.c
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue