diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2011-03-28 22:46:18 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2011-03-28 22:46:18 +0200 |
commit | 52a43ae3b76f86b697537bc3ad8afdb3b421cf2c (patch) | |
tree | 15a006b41f3e166c75f46f1ea45cc4fcb1502f5d /sysdep/unix/krt-iface.c | |
parent | c454872f4e81e69a8e9950289ab810fcac3fc922 (diff) |
Minor changes in addresses.
Mainly changes IA_UNNUMBERED to IA_PEER and adds IA_HOST. Also do not
show broadcast addr in show interfaces. Nobody cares for that.
Diffstat (limited to 'sysdep/unix/krt-iface.c')
-rw-r--r-- | sysdep/unix/krt-iface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdep/unix/krt-iface.c b/sysdep/unix/krt-iface.c index c305d27a..69048ae8 100644 --- a/sysdep/unix/krt-iface.c +++ b/sysdep/unix/krt-iface.c @@ -98,7 +98,7 @@ scan_ifs(struct ifreq *r, int cnt) if (fl & IFF_POINTOPOINT) { - a.flags |= IA_UNNUMBERED; + a.flags |= IA_PEER; if (ioctl(if_scan_sock, SIOCGIFDSTADDR, r) < 0) { err = "SIOCGIFDSTADDR"; goto faulty; } get_sockaddr((struct sockaddr_in *) &r->ifr_addr, &a.opposite, NULL, 1); @@ -114,7 +114,7 @@ scan_ifs(struct ifreq *r, int cnt) && (fl & IFF_MULTICAST) #endif #ifndef CONFIG_UNNUM_MULTICAST - && !(a.flags & IA_UNNUMBERED) + && !(a.flags & IA_PEER) #endif ) i.flags |= IF_MULTICAST; |