version 1.1, 2000/06/03 14:36:36 |
version 1.1.2.1, 2000/08/27 01:11:27 |
|
|
/* $NetBSD$ */ |
/* $NetBSD$ */ |
/* $KAME: in6_src.c,v 1.15 2000/05/30 10:16:24 jinmei Exp $ */ |
/* $KAME: in6_src.c,v 1.27 2000/06/21 08:07:13 itojun Exp $ */ |
|
|
/* |
/* |
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. |
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. |
Line 342 in6_pcbsetport(laddr, in6p) |
|
Line 342 in6_pcbsetport(laddr, in6p) |
|
wild = IN6PLOOKUP_WILDCARD; |
wild = IN6PLOOKUP_WILDCARD; |
|
|
if (in6p->in6p_flags & IN6P_LOWPORT) { |
if (in6p->in6p_flags & IN6P_LOWPORT) { |
|
#ifndef IPNOPRIVPORTS |
if (p == 0 || (suser(p->p_ucred, &p->p_acflag) != 0)) |
if (p == 0 || (suser(p->p_ucred, &p->p_acflag) != 0)) |
return (EACCES); |
return (EACCES); |
|
#endif |
min = IPV6PORT_RESERVEDMIN; |
min = IPV6PORT_RESERVEDMIN; |
max = IPV6PORT_RESERVEDMAX; |
max = IPV6PORT_RESERVEDMAX; |
} else { |
} else { |