mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Basic support for IPv6. The system-dependent part doesn't work yet,
but the core routines are there and seem to be working. o lib/ipv6.[ch] written o Lexical analyser recognizes IPv6 addresses and when in IPv6 mode, treats pure IPv4 addresses as router IDs. o Router ID must be configured manually on IPv6 systems. o Added SCOPE_ORGANIZATION for org-scoped IPv6 multicasts. o Fixed few places where ipa_(hton|ntoh) was called as a function returning converted address.
This commit is contained in:
@@ -549,8 +549,9 @@ ifa_delete(struct ifa *a)
|
||||
}
|
||||
|
||||
static void
|
||||
auto_router_id(void) /* FIXME: What if we run IPv6??? */
|
||||
auto_router_id(void)
|
||||
{
|
||||
#ifndef IPV6
|
||||
struct iface *i, *j;
|
||||
|
||||
j = NULL;
|
||||
@@ -564,6 +565,7 @@ auto_router_id(void) /* FIXME: What if we run IPv6??? */
|
||||
die("Cannot determine router ID (no suitable network interface found), please configure it manually");
|
||||
debug("Guessed router ID %I (%s)\n", j->addr->ip, j->name);
|
||||
config->router_id = ipa_to_u32(j->addr->ip);
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user