Module Name: src
Committed By: tsutsui
Date: Mon Jul 31 16:09:01 UTC 2023
Modified Files:
src/share/examples/npf: host-npf.conf soho_gw-npf.conf
Log Message:
Use proper variables for interface names in examples.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/share/examples/npf/host-npf.conf
cvs rdiff -u -r1.20 -r1.21 src/share/examples/npf/soho_gw-npf.conf
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/examples/npf/host-npf.conf
diff -u src/share/examples/npf/host-npf.conf:1.11 src/share/examples/npf/host-npf.conf:1.12
--- src/share/examples/npf/host-npf.conf:1.11 Sat Sep 21 11:46:25 2019
+++ src/share/examples/npf/host-npf.conf Mon Jul 31 16:09:01 2023
@@ -1,4 +1,4 @@
-# $NetBSD: host-npf.conf,v 1.11 2019/09/21 11:46:25 sevan Exp $
+# $NetBSD: host-npf.conf,v 1.12 2023/07/31 16:09:01 tsutsui Exp $
#
# Simple ruleset for a host with (i.e., not routing) two interfaces,
# ethernet and wifi.
@@ -16,8 +16,8 @@
$wired_if = "wm0"
$wifi_if = "iwn0"
-$wired_addrs= ifaddrs(wm0)
-$wifi_addrs = ifaddrs(iwn0)
+$wired_addrs= ifaddrs($wired_if)
+$wifi_addrs = ifaddrs($wifi_if)
alg "icmp"
Index: src/share/examples/npf/soho_gw-npf.conf
diff -u src/share/examples/npf/soho_gw-npf.conf:1.20 src/share/examples/npf/soho_gw-npf.conf:1.21
--- src/share/examples/npf/soho_gw-npf.conf:1.20 Mon Nov 18 22:27:27 2019
+++ src/share/examples/npf/soho_gw-npf.conf Mon Jul 31 16:09:01 2023
@@ -1,4 +1,4 @@
-# $NetBSD: soho_gw-npf.conf,v 1.20 2019/11/18 22:27:27 sevan Exp $
+# $NetBSD: soho_gw-npf.conf,v 1.21 2023/07/31 16:09:01 tsutsui Exp $
#
# SOHO border
#
@@ -7,8 +7,8 @@
#
$ext_if = "wm0"
-$ext_v4 = inet4(wm0)
-$ext_addrs = ifaddrs(wm0)
+$ext_v4 = inet4($ext_if)
+$ext_addrs = ifaddrs($ext_if)
$int_if = "wm1"