[v3,0/2] examples/client_server_mp: fix port issues

Message ID 20190709150939.31338-1-stephen@networkplumber.org
Headers show
Series
  • examples/client_server_mp: fix port issues
Related show

Message

Stephen Hemminger July 9, 2019, 3:09 p.m.
The client_server_mp application does not work correctly
Azure/Hyper-V because it does not handle the concept of some
ports being hidden and unavailable.

Stephen Hemminger (2):
  examples/multi_process/client_server_mp: check port validity
  examples/multi_process - fix crash in mp_client with sparse ports

v3 - merge both patches in one series
     use alternative algorithm to check port ownership (N^2)
     because reviewer didn't like direct check.

 .../client_server_mp/mp_client/client.c       | 18 ++++----
 .../client_server_mp/mp_server/args.c         | 46 +++++++++++++------
 .../client_server_mp/mp_server/args.h         |  2 +-
 .../client_server_mp/mp_server/init.c         |  7 +--
 4 files changed, 44 insertions(+), 29 deletions(-)