From 4598712a9d540f926c46fa7130043cf0e4734a89 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 20 Feb 2016 20:59:33 +0000 Subject: [PATCH] syscall_net: note another area to look at later --- Kernel/syscall_net.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Kernel/syscall_net.c b/Kernel/syscall_net.c index 37b0db1c..a2fe2e0c 100644 --- a/Kernel/syscall_net.c +++ b/Kernel/syscall_net.c @@ -114,6 +114,17 @@ void sock_close(inoptr ino) s->s_state = SS_UNUSED; } +/* + * This chunk of logic wants pushing out into the stack implementation. + * We shouldn't have knowledge of the addressing in the core code. + * + * Likewise this means that we need to push autobinding, bind address + * checks and socket type checks into the lower stack and only care + * about datagram versus stream. + * + * (A good thought experiment would be verifying that you could support + * something like AX.25 and a host mode TNC via net_native) + */ struct socket *sock_find(uint8_t type, uint8_t sv, struct sockaddrs *sa) { struct socket *sp; -- 2.34.1