Module Name: src Committed By: martin Date: Sun Nov 5 17:38:24 UTC 2023
Modified Files: src/share/examples/npf [netbsd-10]: host-npf.conf soho_gw-npf.conf Log Message: Pull up following revision(s) (requested by tsutsui in ticket #458): share/examples/npf/host-npf.conf: revision 1.12 share/examples/npf/soho_gw-npf.conf: revision 1.21 Use proper variables for interface names in examples. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.11.8.1 src/share/examples/npf/host-npf.conf cvs rdiff -u -r1.20 -r1.20.8.1 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.11.8.1 --- src/share/examples/npf/host-npf.conf:1.11 Sat Sep 21 11:46:25 2019 +++ src/share/examples/npf/host-npf.conf Sun Nov 5 17:38:24 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.11.8.1 2023/11/05 17:38:24 martin 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.20.8.1 --- 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 Sun Nov 5 17:38:24 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.20.8.1 2023/11/05 17:38:24 martin 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"