diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-05-28 23:58:52 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-05-28 23:58:52 +0000 |
commit | b2bee1a003808b0ef2386c649689dbbce2e5b55f (patch) | |
tree | 9f5f6f7eb0cbc88358246f27729bfcc54cef4ceb /sys/netinet6 | |
parent | d9e27b2593b422cd5fdb154c83abe87baed0a1e8 (diff) |
do not treat bind(2) with IPv4 mapped address in a special way.
old code fails to check for port number duplicate.
XXX should remove more IPv4 mapped code
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/in6_pcb.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index e93a00e6042..d824bbf0658 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_pcb.c,v 1.12 2000/04/27 09:23:21 itojun Exp $ */ +/* $OpenBSD: in6_pcb.c,v 1.13 2000/05/28 23:58:51 itojun Exp $ */ /* %%% copyright-nrl-95 @@ -190,7 +190,9 @@ in6_pcbbind(inp, nam) if (lport) { struct inpcb *t; +#if 0 /* we don't support IPv4 mapped address */ struct in_addr fa,la; +#endif /* Question: Do we wish to continue the Berkeley tradition of ports < IPPORT_RESERVED be only for root? @@ -204,6 +206,7 @@ in6_pcbbind(inp, nam) (error = suser(p->p_ucred, &p->p_acflag))) return error; +#if 0 /* we don't support IPv4 mapped address */ if (IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr)) { fa.s_addr = 0; @@ -214,6 +217,7 @@ in6_pcbbind(inp, nam) (struct in_addr *)&la, lport, wild); } else +#endif { t = in_pcblookup(head, (struct in_addr *)&zeroin6_addr, 0, (struct in_addr *)&sin6->sin6_addr, lport, wild); |