List adapters in other network compartments - #855
Conversation
|
So you can capture on interfaces from other compartments by passing the device name to |
|
I think so. Hijacked and sent fake packets, here is what it looks now:
|
|
Rigorously speaking:
|
...assuming you can determine the device name, of course. That's one thing (I asked because in various UN*Xes' compartment/namespace/etc. mechanisms, it may take some extra work to get at foreign network interfaces. It sounds as if that's not true in Windows.) |
Yes, then this change is still necessary. WIN32 API isn't my favorite, but this one happens to satisfy without too much additional handling. |


GetAdaptersAddresses() only returns interfaces in the caller's own compartment, but this adapter lives elsewhere. Patching with GAA_FLAG_INCLUDE_ALL_COMPARTMENTS.
Fixes #854