看板 DFBSD_commit 關於我們 聯絡資訊
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