Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/ifconfig ifconfig(8) support unnumbered flag.



details:   https://anonhg.NetBSD.org/src/rev/84967efb8640
branches:  trunk
changeset: 372424:84967efb8640
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Fri Nov 25 08:41:05 2022 +0000

description:
ifconfig(8) support unnumbered flag.

diffstat:

 sbin/ifconfig/ifconfig.8 |  8 ++++++--
 sbin/ifconfig/ifconfig.c |  6 ++++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diffs (63 lines):

diff -r 4e5544981f1b -r 84967efb8640 sbin/ifconfig/ifconfig.8
--- a/sbin/ifconfig/ifconfig.8  Fri Nov 25 08:40:15 2022 +0000
+++ b/sbin/ifconfig/ifconfig.8  Fri Nov 25 08:41:05 2022 +0000
@@ -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 @@
 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
diff -r 4e5544981f1b -r 84967efb8640 sbin/ifconfig/ifconfig.c
--- a/sbin/ifconfig/ifconfig.c  Fri Nov 25 08:40:15 2022 +0000
+++ b/sbin/ifconfig/ifconfig.c  Fri Nov 25 08:41:05 2022 +0000
@@ -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 @@
 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 @@
                "\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"



Home | Main Index | Thread Index | Old Index