[PATCH] P2P: Add IFNAME=iface command option for interface redirection
j at w1.fi
Tue May 21 15:22:23 EDT 2013
On Tue, May 21, 2013 at 11:48:16AM -0700, Dmitry Shmidt wrote:
> You are right, raw command is working. I am going to prepare wpa_cli patch, if
> you don't mind.
Sure, go ahead.
> It is possible that I am confused with control and monitor socket mix,
> but it looks like in case of global we are using "same" socket. It will
> be different socket descriptor, but it is literally connected to the same file.
> wpa_ctrl_open() will connect control and monitor socket to same "named"
On wpa_supplicant side, yes, it is the same socket. On the client side,
it is not the same local end (e.g., see what wpa_ctrl_open() binds the
> I see it is working, but isn't it a chance that we can mess control and event
I don't see any issues with this.
> Is there easy way to use different name sockets for global interface for
> control and monitor?
Why? Each connection to the global interface is uniquely identified by
the server,client side ends of the connection. Having one of those
(server) fixed does not make this any less unique pair. This is the
design that has been used with the per-interface control interfaces for
close to ten years now.. ;-) (Including what wifi.c does on Android
Jouni Malinen PGP id EFC895FA
More information about the HostAP