From 01bd7759b260b379089acf28cc47bd49572ebd22 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 12 Apr 1999 18:07:05 +0000 Subject: Ignore alias interfaces (some day, we will treat them as pure secondary interface addresses). --- sysdep/unix/krt-iface.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sysdep/unix/krt-iface.c') diff --git a/sysdep/unix/krt-iface.c b/sysdep/unix/krt-iface.c index bfeda06f..bca70cca 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)) -- cgit v1.2.3