]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Ignore alias interfaces (some day, we will treat them as pure secondary
authorMartin Mares <mj@ucw.cz>
Mon, 12 Apr 1999 18:07:05 +0000 (18:07 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 12 Apr 1999 18:07:05 +0000 (18:07 +0000)
interface addresses).

sysdep/unix/krt-iface.c

index bfeda06f85e9699bb88901bd7bbebeb45e8d6383..bca70cca0f542fa93fbd0328e5a1bf2023f2d36d 100644 (file)
@@ -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))