Skip to content

Commit

Permalink
Merge latest ifmcstat (with changes for FreeBSD).
Browse files Browse the repository at this point in the history
Possibly merge or split with netstat -g.

TODO: Make !defined(INET6) clean.
TODO: Add -M/-N instead of -k.
TODO: Use sysctls instead of kvm.

Obtained from:	KAME
MFC after:	2 weeks
  • Loading branch information
bms committed Mar 19, 2007
1 parent 330d710 commit e6b26f1
Show file tree
Hide file tree
Showing 2 changed files with 477 additions and 34 deletions.
46 changes: 30 additions & 16 deletions usr.sbin/ifmcstat/ifmcstat.8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.\" $KAME: ifmcstat.8,v 1.3 2000/10/15 11:43:57 itojun Exp $
.\" $KAME: ifmcstat.8,v 1.6 2002/10/31 04:23:43 suz Exp $
.\"
.\" Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
.\" All rights reserved.
Expand Down Expand Up @@ -29,30 +29,44 @@
.\"
.\" $FreeBSD$
.\"
.Dd May 21, 1998
.Dd March 19, 2007
.Dt IFMCSTAT 8
.Os
.Sh NAME
.Nm ifmcstat
.Nd dump multicast group management statistics per interface
.Sh SYNOPSIS
.Nm
.Op Fl i Ar interface
.Op Fl f Ar address-family
.Op Fl k Ar kernel
.Nm
.Op Ar kernel
.\"
.Sh DESCRIPTION
The
.Nm
utility dumps multicast group information from the kernel.
It is similar but not identical to the output from
.Nm netstat Fl ina .
command dumps multicast group information from the kernel.
.Pp
There are no command line options.
The following options are supported:
.Bl -tag -width Fl
.It Fl i Ar interface
specifies the interface to be displayed.
.Pp
Only root can use
.Nm .
.Sh SEE ALSO
.Xr netstat 1
.Rs
.%A G. Malkin
.%A R. Minnear
.%R IPng for IPv6
.%N RFC2080
.Re
.It Fl f Ar address-family
specifies the address-family to be displayed; currently only
.Ar inet
and
.Ar inet6
are supported.
.It Fl k Ar kernel
extracts the name list from the specified kernel instead of the
default, which is the kernel image the system has booted from.
.It Nm Ar kernel
This is the same as specifying
.Nm
.Fl k Ar kernel .
This usage is deprecated; it is supported only for backwards compatibility.
.Sh BUGS
.Nm
needs superuser privilege.
Loading

0 comments on commit e6b26f1

Please sign in to comment.