Home | History | Annotate | Download | only in ifmcstat
History log of /src/usr.sbin/ifmcstat/ifmcstat.c
RevisionDateAuthorComments
 1.22  03-Mar-2020  nisimura - show " refcount %d" for consistency
- fix an extra : bug which was introduced rev 1.17
 1.21  23-Feb-2017  ozaki-r branches: 1.21.12;
Remove mkludge stuffs

For unknown reasons, IPv6 multicast addresses are linked to a first
IPv6 address assigned to an interface. Due to the design, when removing
a first address having multicast addresses, we need to save them to
somewhere and later restore them once a new IPv6 address is activated.
mkludge stuffs support the operations.

This change links multicast addresses to an interface directly and
throws the kludge away.

Note that as usual some obsolete member variables remain for kvm(3)
users. And also sysctl net.inet6.multicast_kludge remains to avoid
breaking old ifmcstat.

TODO: currently ifnet has a list of in6_multi but obviously the list
should be protocol independent. Provide a common structure (if_multi
or something) to handle in6_multi and in_multi together as well as
ifaddr does for in_ifaddr and in6_ifaddr.
 1.20  10-Jan-2017  ozaki-r branches: 1.20.2;
Don't give up just because inet6 sysctl knobs aren't available

It can happen normally, for example run a kernel without INET6 or
run a rump_server without librumpnet_netinet6.so.
 1.19  13-Jun-2014  joerg branches: 1.19.6;
Use asysctl.
 1.18  11-Jun-2014  joerg Add a const for the oid list.
 1.17  10-Jun-2014  joerg Introduce new sysctls for obtaining interface-specific addresses:
- net.sdl for the active link-layer adddress (the MAC)
- net.ether.multicast for the Ethernet multicast addresses
- net.inet6.multicast for the IPv6 multicast groups
- net.inet6.multicast_kludge for temporarily removed multicast groups

Use this sysctls for replacing the kmem grovelling in ifmcstat(8).
 1.16  30-May-2014  joerg Inline trivial helper function.
 1.15  30-May-2014  joerg Kill __P. Use static.
 1.14  30-May-2014  joerg Remove !NetBSD code.
 1.13  30-May-2014  rmind netstat(1) and ifmcstat(8): ifnet was renamed to ifnet_list, PR/48850.
 1.12  19-Oct-2013  christos branches: 1.12.2;
use new scopeid functions
 1.11  26-Oct-2012  seanb Ensure entire sockaddr_dl is obtained. May not have
been the case previously for interfaces with long names.
 1.10  19-Apr-2009  lukem branches: 1.10.6; 1.10.12;
Fix WARNS=4 issues (-Wextra -Wshadow)
 1.9  16-Nov-2004  itojun branches: 1.9.34;
NI_WITHSCOPEID was not picked up by IETF standardization process.
 1.8  26-Feb-2000  itojun print addresses in extended scoped address notation.
print reference count for multicast group information.
(sync with recent kame)
 1.7  02-Feb-2000  itojun align message a bit better.
 1.6  02-Feb-2000  itojun bring in latest KAME tree. show kludge entry.
 1.5  09-Dec-1999  itojun sync with latest KAME. cleanup on interface type determination.
 1.4  03-Sep-1999  itojun branches: 1.4.4;
follow RFC2553 (sync with recent KAME):
s/IN6_IS_ADDR_ANY/IN6_IS_ADDR_UNSPECIFIED/
 1.3  07-Jul-1999  itojun fix buffer overrun on kvm_openfiles, last argument.

From: Geoff Wing <gcw@pobox.com>
 1.2  06-Jul-1999  itojun add NetBSD RCS ID.
 1.1  01-Jul-1999  itojun ifmcstat: show multicast groups currently joined (in per-interface manner).
 1.4.4.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.9.34.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.10.12.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.12.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.10.6.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.10.6.1  30-Oct-2012  yamt sync with head
 1.12.2.1  10-Aug-2014  tls Rebase.
 1.19.6.1  20-Mar-2017  pgoyette Sync with HEAD
 1.20.2.1  21-Apr-2017  bouyer Sync with HEAD
 1.21.12.1  08-Apr-2020  martin Merge changes from current as of 20200406

RSS XML Feed