We want to use kstrgetmsg() to get UDP data in our driver, is below code OK?
struct sonode *so = NULL; /*create socket here.*/ socket=socreate(); /*make the udp give the data to stream function*/ so = (struct sonode *)socket; mutex_enter(&so->so_plumb_lock); (void)so_sock2stream(so); mutex_exit(&so->so_plumb_lock); /*use stream function to receive udp data*/ kstrgetmsg(so->so_vnode,...); In my test, I find it works. The function kstrgetmsg() can get udp data after that. But I am not sure whether calling the function so_sock2stream() here is OK. Is there any regression except performance? This message posted from opensolaris.org _______________________________________________ networking-discuss mailing list [email protected]
