syscall_net: note another area to look at later
authorAlan Cox <alan@linux.intel.com>
Sat, 20 Feb 2016 20:59:33 +0000 (20:59 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 20 Feb 2016 20:59:33 +0000 (20:59 +0000)
Kernel/syscall_net.c

index 37b0db1..a2fe2e0 100644 (file)
@@ -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;