SCCS-vsn: sys/netinet/in_pcb.c 4.39
-/* in_pcb.c 4.38 83/01/04 */
+/* in_pcb.c 4.39 83/01/22 */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
/* GROSS */
if (aport < IPPORT_RESERVED && u.u_uid != 0)
return (EACCES);
/* GROSS */
if (aport < IPPORT_RESERVED && u.u_uid != 0)
return (EACCES);
- if ((so->so_proto->pr_flags & PR_CONNREQUIRED) == 0)
+ if ((so->so_proto->pr_flags & PR_CONNREQUIRED) == 0 ||
+ (so->so_options & SO_ACCEPTCONN) == 0)
wild = INPLOOKUP_WILDCARD;
if (in_pcblookup(head,
zeroin_addr, 0, sin->sin_addr, lport, wild))
wild = INPLOOKUP_WILDCARD;
if (in_pcblookup(head,
zeroin_addr, 0, sin->sin_addr, lport, wild))