Commit Graph

22 Commits

Author SHA1 Message Date
nisimura
5ef06edbc3 - show " refcount %d" for consistency
- fix an extra : bug which was introduced rev 1.17
2020-03-03 08:56:05 +00:00
ozaki-r
00a9cf741d 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.
2017-02-23 07:57:09 +00:00
ozaki-r
26e6c607e9 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.
2017-01-10 05:43:27 +00:00
joerg
0142924a4e Use asysctl. 2014-06-13 16:00:55 +00:00
joerg
49cf844ece Add a const for the oid list. 2014-06-11 14:05:28 +00:00
joerg
539332ecd5 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).
2014-06-10 09:38:30 +00:00
joerg
74b1011998 Inline trivial helper function. 2014-05-30 22:20:48 +00:00
joerg
79c2ddee71 Kill __P. Use static. 2014-05-30 02:31:40 +00:00
joerg
4c68dd0971 Remove !NetBSD code. 2014-05-30 02:28:07 +00:00
rmind
2286cc983b netstat(1) and ifmcstat(8): ifnet was renamed to ifnet_list, PR/48850. 2014-05-30 01:44:21 +00:00
christos
94a96ec4ae use new scopeid functions 2013-10-19 17:16:25 +00:00
seanb
c3008a4839 Ensure entire sockaddr_dl is obtained. May not have
been the case previously for interfaces with long names.
2012-10-26 16:52:52 +00:00
lukem
96bb91fe3c Fix WARNS=4 issues (-Wextra -Wshadow) 2009-04-19 07:49:07 +00:00
itojun
b95181fc9b NI_WITHSCOPEID was not picked up by IETF standardization process. 2004-11-16 05:59:32 +00:00
itojun
2925a0d65b print addresses in extended scoped address notation.
print reference count for multicast group information.
(sync with recent kame)
2000-02-26 08:13:25 +00:00
itojun
94a0a3b5f3 align message a bit better. 2000-02-02 05:18:32 +00:00
itojun
4d9ae69b8a bring in latest KAME tree. show kludge entry. 2000-02-02 05:04:17 +00:00
itojun
4265f28e51 sync with latest KAME. cleanup on interface type determination. 1999-12-09 15:34:19 +00:00
itojun
cc554ec648 follow RFC2553 (sync with recent KAME):
s/IN6_IS_ADDR_ANY/IN6_IS_ADDR_UNSPECIFIED/
1999-09-03 04:31:48 +00:00
itojun
6002e3435e fix buffer overrun on kvm_openfiles, last argument.
From: Geoff Wing <gcw@pobox.com>
1999-07-07 00:28:29 +00:00
itojun
26c3d764fd add NetBSD RCS ID. 1999-07-06 13:14:54 +00:00
itojun
4512445795 ifmcstat: show multicast groups currently joined (in per-interface manner). 1999-07-01 20:41:49 +00:00