summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHåkon Nessjøen <haakon.nessjoen@gmail.com>2011-11-13 06:40:22 +0100
committerHåkon Nessjøen <haakon.nessjoen@gmail.com>2011-11-13 06:40:22 +0100
commit62fbf67c2a27b10e6ff534c7795a96e38d259e55 (patch)
treec7f129063865a7df7c1ff30ec902edeb902f222d
parent3084b5ec02f72c7c420a5c6687a61df637005ceb (diff)
downloadMAC-Telnet-62fbf67c2a27b10e6ff534c7795a96e38d259e55.tar.gz
MAC-Telnet-62fbf67c2a27b10e6ff534c7795a96e38d259e55.zip
Added comment to remind myself not from writing "non-root" version of macping any more times
-rw-r--r--macping.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/macping.c b/macping.c
index 63ca5eb..2e90bc7 100644
--- a/macping.c
+++ b/macping.c
@@ -163,6 +163,10 @@ int main(int argc, char **argv) {
exit(1);
}
+ /* Mikrotik RouterOS does not answer unless the packet has the correct recipient mac-address in
+ * the ethernet frame. Unlike real MacTelnet connections where the OS is ok with it being a
+ * broadcast mac address.
+ */
if (geteuid() != 0) {
fprintf(stderr, "You need to have root privileges to use %s.\n", argv[0]);
return 1;