DragonFly BSD
DragonFly commits List (threaded) for 2009-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Aggelos Economopoulos <aoiko@xxxxxxxxxxxxxx>
Date: Tue, 08 Dec 2009 20:04:45 +0200

Matthew Dillon wrote:
> commit 48e7b118aed5eb70d42bdbf2ca5a938ef1f371b6
> Author: Matthew Dillon <dillon@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




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]