mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Ignore alias interfaces (some day, we will treat them as pure secondary
interface addresses).
This commit is contained in:
parent
08e2d6259a
commit
01bd7759b2
@ -41,6 +41,12 @@ scan_ifs(struct ifreq *r, int cnt)
|
|||||||
{
|
{
|
||||||
bzero(&i, sizeof(i));
|
bzero(&i, sizeof(i));
|
||||||
DBG("%s\n", r->ifr_name);
|
DBG("%s\n", r->ifr_name);
|
||||||
|
if (strchr(r->ifr_name, ':'))
|
||||||
|
{
|
||||||
|
/* FIXME: Honour aliases as secondary addresses? */
|
||||||
|
DBG("Alias, ignored.\n");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
strncpy(i.name, r->ifr_name, sizeof(i.name) - 1);
|
strncpy(i.name, r->ifr_name, sizeof(i.name) - 1);
|
||||||
get_sockaddr((struct sockaddr_in *) &r->ifr_addr, &i.ip, NULL);
|
get_sockaddr((struct sockaddr_in *) &r->ifr_addr, &i.ip, NULL);
|
||||||
if (ipa_nonzero(i.ip))
|
if (ipa_nonzero(i.ip))
|
||||||
|
Loading…
Reference in New Issue
Block a user