The interface selection with this version is just a "give me an
interface" libpcap call:
https://github.com/ThomasHabets/arping/blob/arping-2.x/src/windows.c#L86
To find the correct interface one has to traverse the routing table.
This is done in later versions on Unix (and using a much better way in
the soon-to-be-relased Arping 2.10).
Enough info to do the same thing on Windows should be found here:
http://stackoverflow.com/questions/3069082/porting-getifaddrs-to-win-xp
but I don't have a Windows development environment.
Getting the Windows version up to date shouldn't be too hard. I'd help
out anyone who wants to try.
> The next step was to disable the Wireless Device through Windows
> Control Panel, so only the Local Area Connection appears in an
> ipconfig /all. In this instance arping, or underlying drivers, pops up
> a generic Windows Error "arping.exe has encountered a problem...". The
> extra info is useless: ModName unknown, Offset of 0x0.
> Question two: is there any way to circumvent/fix this exception issue?
Adding more verbosity (-vvvvv) doesn't show any interesting info, such
as it still trying to use that interface?
Anyway I have no idea what could be wrong. The Windows version of
Arping is not maintained. But I'm not anti-Windows, I'd welcome
patches.
> The last test was to force a particular interface. With both the LAN
> (Local Area Connection) and Wifi devices enabled, I did the following:
> arping -i \Device\NPF_{REFERENCE_TO_LAN_DEVICE} -s LAN_MAC_ADDR -v -v
> 192.168.10.11
> This also provided the same exception as with the WIreless Device
> enabled.
You mean *disabled*? That's odd. And no output at all?
I assume that by disabling you mean disable the network card in
network settings? Could you try disabling the wireless card under
Device Manager -> Network adapters?
That could be a workaround if you don't need the other interface.
--
typedef struct me_s {
char name[] = { "Thomas Habets" };
char email[] = { "tho...@habets.pp.se" };
char kernel[] = { "Linux" };
char *pgpKey[] = { "http://www.habets.pp.se/pubkey.txt" };
char pgp[] = { "A8A3 D1DD 4AE0 8467 7FDE 0945 286A E90A AD48 E854" };
char coolcmd[] = { "echo '. ./_&. ./_'>_;. ./_" };
} me_t;