multipath-tcp/mptcp — pull request #63 by chrpinedo (2014-12-09 13:13:02+00:00)
Title: bugfix mptcp_sched.c: select lowpriosk before backupsk if bestsk is not valid

Now lowpriosk is only selected if all the subflows are lowprio subflows. This patch ensures that lowpriosk is used if there isn't a valid bestsk subflow. When there aren't valid bestsk and lowpriosk subflows, then backupsk is used.

Apart from that, ensure that sk is set to NULL if bestsk, lowpriosk and backupsk are NULL.