in6_pcb.c (227428) | in6_pcb.c (227450) |
---|---|
1/*- 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 3 * Copyright (c) 2010-2011 Juniper Networks, Inc. 4 * All rights reserved. 5 * 6 * Portions of this software were developed by Robert N. M. Watson under 7 * contract to Juniper Networks, Inc. 8 * --- 51 unchanged lines hidden (view full) --- 60 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 61 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 62 * SUCH DAMAGE. 63 * 64 * @(#)in_pcb.c 8.2 (Berkeley) 1/4/94 65 */ 66 67#include <sys/cdefs.h> | 1/*- 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 3 * Copyright (c) 2010-2011 Juniper Networks, Inc. 4 * All rights reserved. 5 * 6 * Portions of this software were developed by Robert N. M. Watson under 7 * contract to Juniper Networks, Inc. 8 * --- 51 unchanged lines hidden (view full) --- 60 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 61 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 62 * SUCH DAMAGE. 63 * 64 * @(#)in_pcb.c 8.2 (Berkeley) 1/4/94 65 */ 66 67#include <sys/cdefs.h> |
68__FBSDID("$FreeBSD: stable/9/sys/netinet6/in6_pcb.c 227428 2011-11-10 20:28:30Z trociny $"); | 68__FBSDID("$FreeBSD: stable/9/sys/netinet6/in6_pcb.c 227450 2011-11-11 14:42:05Z trociny $"); |
69 70#include "opt_inet.h" 71#include "opt_inet6.h" 72#include "opt_ipsec.h" 73#include "opt_pcbgroup.h" 74 75#include <sys/param.h> 76#include <sys/systm.h> --- 188 unchanged lines hidden (view full) --- 265 && (ntohl(t->inp_laddr.s_addr) != 266 INADDR_ANY || ((inp->inp_vflag & 267 INP_IPV6PROTO) == 268 (t->inp_vflag & INP_IPV6PROTO)))) 269 return (EADDRINUSE); 270 } else if (t && (reuseport == 0 || 271 (t->inp_flags2 & INP_REUSEPORT) == 0) && 272 (ntohl(t->inp_laddr.s_addr) != INADDR_ANY || | 69 70#include "opt_inet.h" 71#include "opt_inet6.h" 72#include "opt_ipsec.h" 73#include "opt_pcbgroup.h" 74 75#include <sys/param.h> 76#include <sys/systm.h> --- 188 unchanged lines hidden (view full) --- 265 && (ntohl(t->inp_laddr.s_addr) != 266 INADDR_ANY || ((inp->inp_vflag & 267 INP_IPV6PROTO) == 268 (t->inp_vflag & INP_IPV6PROTO)))) 269 return (EADDRINUSE); 270 } else if (t && (reuseport == 0 || 271 (t->inp_flags2 & INP_REUSEPORT) == 0) && 272 (ntohl(t->inp_laddr.s_addr) != INADDR_ANY || |
273 (t->inp_vflag & INP_IPV6PROTO) == 0)) | 273 (t->inp_vflag & INP_IPV6PROTO) != 0)) |
274 return (EADDRINUSE); 275 } 276#endif 277 } 278 inp->in6p_laddr = sin6->sin6_addr; 279 } 280 if (lport == 0) { 281 if ((error = in6_pcbsetport(&inp->in6p_laddr, inp, cred)) != 0) { --- 926 unchanged lines hidden --- | 274 return (EADDRINUSE); 275 } 276#endif 277 } 278 inp->in6p_laddr = sin6->sin6_addr; 279 } 280 if (lport == 0) { 281 if ((error = in6_pcbsetport(&inp->in6p_laddr, inp, cred)) != 0) { --- 926 unchanged lines hidden --- |