1*8ad7fb44Sbluhm /* $OpenBSD: vars6.c,v 1.3 2014/08/31 19:20:44 bluhm Exp $ */ 24228fd5fSitojun 34228fd5fSitojun /* 44228fd5fSitojun * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 54228fd5fSitojun * All rights reserved. 64228fd5fSitojun * 74228fd5fSitojun * Redistribution and use in source and binary forms, with or without 84228fd5fSitojun * modification, are permitted provided that the following conditions 94228fd5fSitojun * are met: 104228fd5fSitojun * 1. Redistributions of source code must retain the above copyright 114228fd5fSitojun * notice, this list of conditions and the following disclaimer. 124228fd5fSitojun * 2. Redistributions in binary form must reproduce the above copyright 134228fd5fSitojun * notice, this list of conditions and the following disclaimer in the 144228fd5fSitojun * documentation and/or other materials provided with the distribution. 154228fd5fSitojun * 3. Neither the name of the project nor the names of its contributors 164228fd5fSitojun * may be used to endorse or promote products derived from this software 174228fd5fSitojun * without specific prior written permission. 184228fd5fSitojun * 194228fd5fSitojun * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 204228fd5fSitojun * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 214228fd5fSitojun * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 224228fd5fSitojun * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 234228fd5fSitojun * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 244228fd5fSitojun * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 254228fd5fSitojun * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 264228fd5fSitojun * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 274228fd5fSitojun * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 284228fd5fSitojun * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 294228fd5fSitojun * SUCH DAMAGE. 304228fd5fSitojun */ 314228fd5fSitojun 324228fd5fSitojun #include <sys/types.h> 334228fd5fSitojun #include <netinet/in.h> 344228fd5fSitojun 354228fd5fSitojun /* 3621761da7Sjmc * Definitions of some constant IPv6 addresses. 374228fd5fSitojun */ 384228fd5fSitojun const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT; 394228fd5fSitojun const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT; 40*8ad7fb44Sbluhm const struct in6_addr in6addr_intfacelocal_allnodes = IN6ADDR_INTFACELOCAL_ALLNODES_INIT; 414228fd5fSitojun const struct in6_addr in6addr_linklocal_allnodes = IN6ADDR_LINKLOCAL_ALLNODES_INIT; 42*8ad7fb44Sbluhm const struct in6_addr in6addr_linklocal_allrouters = IN6ADDR_LINKLOCAL_ALLROUTERS_INIT; 43