summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-04-12 20:07:05 +0200
committerMartin Mares <mj@ucw.cz>1999-04-12 20:07:05 +0200
commit01bd7759b260b379089acf28cc47bd49572ebd22 (patch)
tree71a5bbd48ada2d5836fc5463340fd9df7f8a6bd0
parent08e2d6259a71c5e43ac0083ea6d81357678f99eb (diff)
downloadbird-01bd7759b260b379089acf28cc47bd49572ebd22.tar
bird-01bd7759b260b379089acf28cc47bd49572ebd22.zip
Ignore alias interfaces (some day, we will treat them as pure secondary
interface addresses).
-rw-r--r--sysdep/unix/krt-iface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdep/unix/krt-iface.c b/sysdep/unix/krt-iface.c
index bfeda06..bca70cc 100644
--- a/sysdep/unix/krt-iface.c
+++ b/sysdep/unix/krt-iface.c
@@ -41,6 +41,12 @@ scan_ifs(struct ifreq *r, int cnt)
{
bzero(&i, sizeof(i));
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);
get_sockaddr((struct sockaddr_in *) &r->ifr_addr, &i.ip, NULL);
if (ipa_nonzero(i.ip))