netd: Futher fixes
authorAlan Cox <alan@linux.intel.com>
Thu, 9 Nov 2017 01:20:57 +0000 (01:20 +0000)
committerAlan Cox <alan@linux.intel.com>
Thu, 9 Nov 2017 01:20:57 +0000 (01:20 +0000)
commit02c6a541cb24090ab910c7d1e2dede1e3fa01dd9
treeeabbef33ce928a7e4fec1a6fc692621fb3bc314f
parentbb54210d7763040355af7770af5d63e7c316b5e8
netd: Futher fixes

With these applied you can ping and remotely interact with the stack but
local interactions are not yet working (probably byte order) and also the
close() functionality is a bit messed up.

We need to

a) break the mapping when the kernel asks us to move to closed
b) do the flag test *outside* of the app callbacks (as we may be closing
   without any app callbacks happening)
c) allow for events from uip on unmapped sockets (one the kernel closed),
   in which case we should reset if there is data arriving, and otherwise
   cycle through the close states and close in uip, then free up the broken
   mapping slot
Applications/netd/Makefile.6809
Applications/netd/Makefile.z80
Applications/netd/dig.c
Applications/netd/fuzix-conf.h
Applications/netd/gethostbyname.c
Applications/netd/httpd.c
Applications/netd/netd.c
Applications/netd/ntpdate.c
Applications/netd/slip.c