From b55f42b764f09c8ab05b5d56b33222769768a8b5 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Mon, 30 Sep 2024 10:02:58 +0200 Subject: [PATCH] Show warning when using Wi-Fi interfaces --- nmrp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nmrp.c b/nmrp.c index 67ebf45..4c849f8 100644 --- a/nmrp.c +++ b/nmrp.c @@ -515,6 +515,10 @@ int nmrp_do(struct nmrpd_args *args) } } + if (ethsock_is_wifi(sock)) { + printf("Warning: using a Wi-Fi interface. Make sure you know what you're doing!\n"); + } + if (!autoip) { status = is_valid_ip(sock, &ipaddr, &ipmask); if (status <= 0) {