Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src the format without netmask is supported for compatibility on...
details: https://anonhg.NetBSD.org/src/rev/cf4cf39a7707
branches: trunk
changeset: 495282:cf4cf39a7707
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Tue Jul 25 18:47:28 2000 +0000
description:
the format without netmask is supported for compatibility only and not
specifying it is discouradged, actually
also add comments about this fact to etc/rc.d/network, for people who
don't read manpages :)
diffstat:
etc/rc.d/network | 4 +++-
share/man/man5/ifaliases.5 | 8 ++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diffs (53 lines):
diff -r 9c5e64d190de -r cf4cf39a7707 etc/rc.d/network
--- a/etc/rc.d/network Tue Jul 25 18:17:03 2000 +0000
+++ b/etc/rc.d/network Tue Jul 25 18:47:28 2000 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: network,v 1.15 2000/07/20 19:43:10 thorpej Exp $
+# $NetBSD: network,v 1.16 2000/07/25 18:47:28 jdolecek Exp $
#
# PROVIDE: network
@@ -158,6 +158,7 @@
while [ $# -ge 2 ]; do
addr=$1 ; net=$2 ; shift 2
if [ "$net" = "-" ]; then
+ # for compatibility only, obsolete
ifconfig $int inet alias $addr
else
ifconfig $int inet alias $addr \
@@ -185,6 +186,7 @@
fi
while read addr int net; do
if [ -z "$net" ]; then
+ # for compatibility only, obsolete
ifconfig $int inet alias $addr
else
ifconfig $int inet alias $addr netmask $net
diff -r 9c5e64d190de -r cf4cf39a7707 share/man/man5/ifaliases.5
--- a/share/man/man5/ifaliases.5 Tue Jul 25 18:17:03 2000 +0000
+++ b/share/man/man5/ifaliases.5 Tue Jul 25 18:47:28 2000 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: ifaliases.5,v 1.6 2000/07/19 16:52:16 jhawk Exp $
+.\" $NetBSD: ifaliases.5,v 1.7 2000/07/25 18:47:29 jdolecek Exp $
.\"
.\" Copyright (c) 1996 Matthew R. Green
.\" All rights reserved.
@@ -59,7 +59,7 @@
.Pp
The
.Em netmask
-is the netmask of the alias's network address. This item is optional.
+is the netmask of the alias's network address.
.Sh FILES
.Pa /etc/rc.d/network
.Pa /etc/ifaliases
@@ -68,3 +68,7 @@
.Nm
file appeared in
.Nx 1.2 .
+.Sh NOTES
+Though the format without netmask is still supported
+for compatibility, it's usage is discouradged - you should
+always specify netmask explicitly.
Home |
Main Index |
Thread Index |
Old Index