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

看板DFBSD_commit作者時間16年前 (2009/12/09 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/11 (看更多)
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
文章代碼(AID): #1B7fkdQx (DFBSD_commit)
討論串 (同標題文章)
完整討論串 (本文為第 4 之 11 篇):
文章代碼(AID): #1B7fkdQx (DFBSD_commit)