version 1.1, 2000/06/03 14:36:36 |
version 1.1.2.2, 2000/08/27 01:25:08 |
|
|
/* $NetBSD$ */ |
/* $NetBSD$ */ |
/* $KAME: in6_src.c,v 1.15 2000/05/30 10:16:24 jinmei Exp $ */ |
/* $KAME: in6_src.c,v 1.34 2000/08/26 10:00:45 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); |
min = IPV6PORT_RESERVEDMIN; |
#endif |
max = IPV6PORT_RESERVEDMAX; |
min = ip6_lowportmin; |
|
max = ip6_lowportmax; |
} else { |
} else { |
min = IPV6PORT_ANONMIN; |
min = ip6_anonportmin; |
max = IPV6PORT_ANONMAX; |
max = ip6_anonportmax; |
} |
} |
|
|
/* value out of range */ |
/* value out of range */ |