[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.108.2.2 and 1.108.2.3

version 1.108.2.2, 2006/10/25 07:53:19 version 1.108.2.3, 2006/10/25 12:58:56
Line 461  socreate(int dom, struct socket **aso, i
Line 461  socreate(int dom, struct socket **aso, i
                 prp = pffindproto(dom, proto, type);                  prp = pffindproto(dom, proto, type);
         else          else
                 prp = pffindtype(dom, type);                  prp = pffindtype(dom, type);
         if (prp == 0) {          if (prp == 0 || prp->pr_usrreq == 0)
                 /* no support for domain */  
                 if (pffinddomain(dom) == 0)  
                         return (EAFNOSUPPORT);  
                 /* no support for socket type */  
                 if (proto == 0 && type != 0)  
                         return (EPROTOTYPE);  
                 return (EPROTONOSUPPORT);  
         }  
         if (prp->pr_usrreq == 0)  
                 return (EPROTONOSUPPORT);                  return (EPROTONOSUPPORT);
         if (prp->pr_type != type)          if (prp->pr_type != type)
                 return (EPROTOTYPE);                  return (EPROTOTYPE);

Legend:
Removed from v.1.108.2.2  
changed lines
  Added in v.1.108.2.3

CVSweb <webmaster@jp.NetBSD.org>