netd: rework logic for closedown
authorAlan Cox <alan@linux.intel.com>
Tue, 14 Nov 2017 00:41:35 +0000 (00:41 +0000)
committerAlan Cox <alan@linux.intel.com>
Tue, 14 Nov 2017 00:41:35 +0000 (00:41 +0000)
commitbbf72e2db637f007669816aab60e2147a6fb2031
tree42f320865796ade69f19452e1a6bc089b1a494d3
parent24aebd9f6084f3a6fb52edf2d3d58a53b174490d
netd: rework logic for closedown

Implement a poll function in uip for a user requested callback. That allows
us to rework all the polling close stuff rather more nicely and the end
result now seems to avoid getting stuck.

Also when we are asked for SS_CONNECTING move to it as we were forgetting
to ack the state change.
Applications/netd/netd.c
Applications/netd/netd.h
Applications/netd/uip.c
Applications/netd/uip.h