freebsd: Add constant ipv6 addresses from vars.c.

This is necessary for a configuration without IPv6.
This commit is contained in:
Christian Mauderer
2016-08-04 14:12:17 +02:00
committed by Sebastian Huber
parent 7aaa9a19d1
commit 2fb3a360e7
6 changed files with 9 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
#include <machine/rtems-bsd-user-space.h>
/* $KAME: vars.c,v 1.2 2001/08/20 02:32:41 itojun Exp $ */
/*

View File

@@ -113,12 +113,14 @@ VNET_DECLARE(int, icmp6_nodeinfo_oldmcprefix);
/*
* Definitions of some costant IP6 addresses.
*/
#ifndef __rtems__
const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT;
const struct in6_addr in6addr_nodelocal_allnodes =
IN6ADDR_NODELOCAL_ALLNODES_INIT;
const struct in6_addr in6addr_linklocal_allnodes =
IN6ADDR_LINKLOCAL_ALLNODES_INIT;
#endif /* __rtems__ */
const struct in6_addr in6addr_linklocal_allrouters =
IN6ADDR_LINKLOCAL_ALLROUTERS_INIT;
const struct in6_addr in6addr_linklocal_allv2routers =