Networking: arp-request in Unix
-
Hi,
AFAIK, no, that is outside of Qt's scope.
-
Hi
What is the use case ?
I needed it on a "controlled" pc so i just run arp command with QProcess and read the output.
But that might not be an option in all cases. -
@mrjj said in Networking: arp-request in Unix:
Hi
What is the use case ?
I needed it on a "controlled" pc so i just run arp command with QProcess and read the output.
But that might not be an option in all cases.Hi!
This is needs for the simple hardware configuration of the device. On Windows-host pc I use SendArp... But, as I see, there is no alternative API for Linux. -
@sitesv said in Networking: arp-request in Unix:
there is no alternative API for Linux.
maybe the arping command is of some help?
-
There are many ways to do what you seek in linux, just none are Qt specific. It's a Linux systems programming exercise, not Qt. Firstly, you're not going to get a real MAC address for any IP that isn't directly connected. You may get the MAC of the router gateway though. I'd just send a dgram to the destination IP, then read /proc/net/arp to see if an entry was added.