git: network - Move socket from netmsg ext to netmsg header, add port to socket

Aggelos Economopoulos aoiko at cc.ece.ntua.gr
Tue Dec 8 10:06:27 PST 2009


Matthew Dillon wrote:
> commit 48e7b118aed5eb70d42bdbf2ca5a938ef1f371b6
> Author: Matthew Dillon <dillon at apollo.backplane.com>
> Date:   Sat Dec 5 11:45:34 2009 -0800
> 
>     network - Move socket from netmsg ext to netmsg header, add port to socket

>     * Instead of recalculating the port based on the inp or mbuf all the time,
>       add a so_port field to the socket structure directly.
>     
>     * The socket pointer is now part of the netmsg header, even though some
>       subsystems do not need it.  This allows us to validate the message port
>       more easily.

 /*
+ * Set or change the message port a socket receives commands on.
+ *
+ * XXX
+ */
+void
+sosetport(struct socket *so, lwkt_port_t port)
+{
+       so->so_port = port;
+}
+

Err. What's the XXX for?

Aggelos






More information about the Commits mailing list