[Midnightbsd-cvs] src [10381] trunk/usr.sbin/mtest/mtest.c: sync mtest
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Jun 3 19:27:11 EDT 2018
Revision: 10381
http://svnweb.midnightbsd.org/src/?rev=10381
Author: laffer1
Date: 2018-06-03 19:27:10 -0400 (Sun, 03 Jun 2018)
Log Message:
-----------
sync mtest
Modified Paths:
--------------
trunk/usr.sbin/mtest/Makefile
trunk/usr.sbin/mtest/mtest.8
trunk/usr.sbin/mtest/mtest.c
Property Changed:
----------------
trunk/usr.sbin/mtest/mtest.8
Modified: trunk/usr.sbin/mtest/Makefile
===================================================================
--- trunk/usr.sbin/mtest/Makefile 2018-06-03 23:26:13 UTC (rev 10380)
+++ trunk/usr.sbin/mtest/Makefile 2018-06-03 23:27:10 UTC (rev 10381)
@@ -1,4 +1,5 @@
# $MidnightBSD$
+# $FreeBSD: stable/10/usr.sbin/mtest/Makefile 191651 2009-04-29 09:50:04Z bms $
.include <bsd.own.mk>
Modified: trunk/usr.sbin/mtest/mtest.8
===================================================================
--- trunk/usr.sbin/mtest/mtest.8 2018-06-03 23:26:13 UTC (rev 10380)
+++ trunk/usr.sbin/mtest/mtest.8 2018-06-03 23:27:10 UTC (rev 10381)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\"
.\" Copyright (c) 2007-2009 Bruce Simpson.
.\" All rights reserved.
@@ -24,7 +25,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/usr.sbin/mtest/mtest.8 259281 2013-12-13 00:56:05Z eadler $
.\"
.Dd April 29, 2009
.Dt MTEST 8
@@ -131,9 +132,9 @@
Print
.Ar n
source filter entries for
-.An mcast-addr
+.Ar mcast-addr
on interface
-.An ifname .
+.Ar ifname .
.\"
.Pp
.It Ic f Ar filename
@@ -159,7 +160,6 @@
For IPv4, the program will perform
a lookup of the primary IP address based on the interface name.
This may fail if no primary IP address is assigned.
-.Pp
.Sh SEE ALSO
.Rs
.%A D. Thaler
Property changes on: trunk/usr.sbin/mtest/mtest.8
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/usr.sbin/mtest/mtest.c
===================================================================
--- trunk/usr.sbin/mtest/mtest.c 2018-06-03 23:26:13 UTC (rev 10380)
+++ trunk/usr.sbin/mtest/mtest.c 2018-06-03 23:27:10 UTC (rev 10381)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 2007-2009 Bruce Simpson.
* Copyright (c) 2000 Wilbert De Graaf.
@@ -37,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__MBSDID("$MidnightBSD$");
+__FBSDID("$FreeBSD: stable/10/usr.sbin/mtest/mtest.c 244538 2012-12-21 15:54:13Z kevlo $");
#include <sys/types.h>
#include <sys/param.h>
@@ -204,12 +205,12 @@
s6 = -1;
#ifdef INET
s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
- if (s == -1 && errno != EPROTONOSUPPORT)
+ if (s == -1 && errno != EAFNOSUPPORT)
err(1, "can't open IPv4 socket");
#endif
#ifdef INET6
s6 = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP);
- if (s6 == -1 && errno != EPROTONOSUPPORT)
+ if (s6 == -1 && errno != EAFNOSUPPORT)
err(1, "can't open IPv6 socket");
#endif
if (s == -1 && s6 == -1)
More information about the Midnightbsd-cvs
mailing list