diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-09-04 07:26:54 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-09-04 07:26:54 +0000 |
commit | 8182024ed97ac36b040c168df6fb7a8d1f777acf (patch) | |
tree | 34bfdf861fe0f67ac32c91e3adda9d9d0d93c0c4 /sys/netinet6/in6_pcb.c | |
parent | 65ad04741171e45c64ba4bc306cb92b68f836698 (diff) |
pass struct proc * down to in6_pcbsetport
Diffstat (limited to 'sys/netinet6/in6_pcb.c')
-rw-r--r-- | sys/netinet6/in6_pcb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index 1249e11ba8d..ae69f5afe19 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_pcb.c,v 1.30 2002/08/20 21:50:56 itojun Exp $ */ +/* $OpenBSD: in6_pcb.c,v 1.31 2002/09/04 07:26:53 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -297,7 +297,7 @@ in6_pcbbind(inp, nam) } if (lport == 0) { - error = in6_pcbsetport(&inp->inp_laddr6, inp); + error = in6_pcbsetport(&inp->inp_laddr6, inp, p); if (error != 0) return error; } else @@ -309,9 +309,10 @@ in6_pcbbind(inp, nam) } int -in6_pcbsetport(laddr, inp) +in6_pcbsetport(laddr, inp, p) struct in6_addr *laddr; struct inpcb *inp; + struct proc *p; { struct socket *so = inp->inp_socket; struct inpcbtable *table = inp->inp_table; @@ -321,7 +322,6 @@ in6_pcbsetport(laddr, inp) int count; int loopcount = 0; int wild = INPLOOKUP_IPV6; - struct proc *p = curproc; /* XXX */ int error; /* XXX we no longer support IPv4 mapped address, so no tweaks here */ |