Module Name: src
Committed By: knakahara
Date: Fri Nov 25 08:41:05 UTC 2022
Modified Files:
src/sbin/ifconfig: ifconfig.8 ifconfig.c
Log Message:
ifconfig(8) support unnumbered flag.
To generate a diff of this commit:
cvs rdiff -u -r1.123 -r1.124 src/sbin/ifconfig/ifconfig.8
cvs rdiff -u -r1.248 -r1.249 src/sbin/ifconfig/ifconfig.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/ifconfig/ifconfig.8
diff -u src/sbin/ifconfig/ifconfig.8:1.123 src/sbin/ifconfig/ifconfig.8:1.124
--- src/sbin/ifconfig/ifconfig.8:1.123 Fri Jan 7 10:17:39 2022
+++ src/sbin/ifconfig/ifconfig.8 Fri Nov 25 08:41:05 2022
@@ -1,4 +1,4 @@
-.\" $NetBSD: ifconfig.8,v 1.123 2022/01/07 10:17:39 bad Exp $
+.\" $NetBSD: ifconfig.8,v 1.124 2022/11/25 08:41:05 knakahara Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)ifconfig.8 8.4 (Berkeley) 6/1/94
.\"
-.Dd March 9, 2021
+.Dd November 25, 2022
.Dt IFCONFIG 8
.Os
.Sh NAME
@@ -744,6 +744,10 @@ traffic can be protected using
If the driver is a
.Xr pfsync 4
pseudo-device, broadcast the packets using multicast.
+.It Cm unnumbered
+Treat the interface as unnumbered.
+.It Cm -unnumbered
+Don't treat the interface as unnumbered.
.El
.Pp
.Nm
Index: src/sbin/ifconfig/ifconfig.c
diff -u src/sbin/ifconfig/ifconfig.c:1.248 src/sbin/ifconfig/ifconfig.c:1.249
--- src/sbin/ifconfig/ifconfig.c:1.248 Wed Oct 14 13:37:14 2020
+++ src/sbin/ifconfig/ifconfig.c Fri Nov 25 08:41:05 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: ifconfig.c,v 1.248 2020/10/14 13:37:14 roy Exp $ */
+/* $NetBSD: ifconfig.c,v 1.249 2022/11/25 08:41:05 knakahara Exp $ */
/*-
* Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
#ifndef lint
__COPYRIGHT("@(#) Copyright (c) 1983, 1993\
The Regents of the University of California. All rights reserved.");
-__RCSID("$NetBSD: ifconfig.c,v 1.248 2020/10/14 13:37:14 roy Exp $");
+__RCSID("$NetBSD: ifconfig.c,v 1.249 2022/11/25 08:41:05 knakahara Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -141,6 +141,7 @@ __dead static void usage(void);
static const struct kwinst ifflagskw[] = {
IFKW("arp", -IFF_NOARP)
, IFKW("debug", IFF_DEBUG)
+ , IFKW("unnumbered", IFF_UNNUMBERED)
, IFKW("link0", IFF_LINK0)
, IFKW("link1", IFF_LINK1)
, IFKW("link2", IFF_LINK2)
@@ -1524,6 +1525,7 @@ usage(void)
"\t[ preference n ]\n"
"\t[ link0 | -link0 ] [ link1 | -link1 ] [ link2 | -link2 ]\n"
"\t[ linkstr str | -linkstr ]\n"
+ "\t[ unnumbered | -unnumbered ]\n"
"\t[ description str | descr str | -description | -descr ]\n"
" %s -a [-b] [-d] [-h] %s[-u] [-v] [-z] [ af ]\n"
" %s -l [-b] [-d] [-s] [-u]\n"