[BACK]Return to uipc_socket.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/uipc_socket.c between version 1.146 and 1.147

version 1.146, 2007/11/24 07:46:11 version 1.147, 2007/11/24 07:49:03
Line 428  sokva_reclaim_callback(struct callback_e
Line 428  sokva_reclaim_callback(struct callback_e
 }  }
   
 struct mbuf *  struct mbuf *
 getsombuf(struct socket *so)  getsombuf(struct socket *so, int type)
 {  {
         struct mbuf *m;          struct mbuf *m;
   
         m = m_get(M_WAIT, MT_SONAME);          m = m_get(M_WAIT, type);
         MCLAIM(m, so->so_mowner);          MCLAIM(m, so->so_mowner);
         return m;          return m;
 }  }
Line 442  m_intopt(struct socket *so, int val)
Line 442  m_intopt(struct socket *so, int val)
 {  {
         struct mbuf *m;          struct mbuf *m;
   
         m = getsombuf(so);          m = getsombuf(so, MT_SOOPTS);
         m->m_len = sizeof(int);          m->m_len = sizeof(int);
         *mtod(m, int *) = val;          *mtod(m, int *) = val;
         return m;          return m;

Legend:
Removed from v.1.146  
changed lines
  Added in v.1.147

CVSweb <webmaster@jp.NetBSD.org>