in6_pcb.c (132714) | in6_pcb.c (132794) |
---|---|
1/* $FreeBSD: head/sys/netinet6/in6_pcb.c 132714 2004-07-27 23:44:03Z rwatson $ */ | 1/* $FreeBSD: head/sys/netinet6/in6_pcb.c 132794 2004-07-28 13:03:07Z yar $ */ |
2/* $KAME: in6_pcb.c,v 1.31 2001/05/21 05:45:10 jinmei Exp $ */ 3 4/* 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 207 unchanged lines hidden (view full) --- 217 INPLOOKUP_WILDCARD); 218 if (t && 219 ((t->inp_vflag & 220 INP_TIMEWAIT) == 0) && 221 (so->so_type != SOCK_STREAM || 222 ntohl(t->inp_faddr.s_addr) == 223 INADDR_ANY) && 224 (so->so_cred->cr_uid != | 2/* $KAME: in6_pcb.c,v 1.31 2001/05/21 05:45:10 jinmei Exp $ */ 3 4/* 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 207 unchanged lines hidden (view full) --- 217 INPLOOKUP_WILDCARD); 218 if (t && 219 ((t->inp_vflag & 220 INP_TIMEWAIT) == 0) && 221 (so->so_type != SOCK_STREAM || 222 ntohl(t->inp_faddr.s_addr) == 223 INADDR_ANY) && 224 (so->so_cred->cr_uid != |
225 t->inp_socket->so_cred->cr_uid) && 226 (ntohl(t->inp_laddr.s_addr) != 227 INADDR_ANY || 228 INP_SOCKAF(so) == 229 INP_SOCKAF(t->inp_socket))) | 225 t->inp_socket->so_cred->cr_uid)) |
230 return (EADDRINUSE); 231 } 232 } 233 t = in6_pcblookup_local(pcbinfo, &sin6->sin6_addr, 234 lport, wild); 235 if (t && (reuseport & ((t->inp_vflag & INP_TIMEWAIT) ? 236 intotw(t)->tw_so_options : 237 t->inp_socket->so_options)) == 0) --- 722 unchanged lines hidden --- | 226 return (EADDRINUSE); 227 } 228 } 229 t = in6_pcblookup_local(pcbinfo, &sin6->sin6_addr, 230 lport, wild); 231 if (t && (reuseport & ((t->inp_vflag & INP_TIMEWAIT) ? 232 intotw(t)->tw_so_options : 233 t->inp_socket->so_options)) == 0) --- 722 unchanged lines hidden --- |