Module Name:    src
Committed By:   yamaguchi
Date:           Wed Sep 23 06:18:20 UTC 2020

Modified Files:
        src/tests/net/if_pppoe: t_pppoe.sh

Log Message:
Add a limit for auth at a test for invalid account


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/tests/net/if_pppoe/t_pppoe.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/net/if_pppoe/t_pppoe.sh
diff -u src/tests/net/if_pppoe/t_pppoe.sh:1.20 src/tests/net/if_pppoe/t_pppoe.sh:1.21
--- src/tests/net/if_pppoe/t_pppoe.sh:1.20	Wed Sep 23 05:56:55 2020
+++ src/tests/net/if_pppoe/t_pppoe.sh	Wed Sep 23 06:18:20 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: t_pppoe.sh,v 1.20 2020/09/23 05:56:55 yamaguchi Exp $
+#	$NetBSD: t_pppoe.sh,v 1.21 2020/09/23 06:18:20 yamaguchi Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -224,7 +224,8 @@ run_test()
 	local setup_clientparam="pppoectl pppoe0 myauthproto=$auth \
 				    'myauthname=$AUTHNAME' \
 				    'myauthsecret=invalidsecret' \
-				    'hisauthproto=none'"
+				    'hisauthproto=none' \
+				    'max-auth-failure=1'"
 	atf_check -s exit:0 -x "$HIJACKING $setup_clientparam"
 	atf_check -s exit:0 rump.ifconfig pppoe0 up
 	wait_for_session_established dontfail
@@ -374,7 +375,8 @@ run_test6()
 	local setup_clientparam="pppoectl pppoe0 myauthproto=$auth \
 				    'myauthname=$AUTHNAME' \
 				    'myauthsecret=invalidsecret' \
-				    'hisauthproto=none'"
+				    'hisauthproto=none' \
+				    'max-auth-failure=1'"
 	atf_check -s exit:0 -x "$HIJACKING $setup_clientparam"
 	atf_check -s exit:0 rump.ifconfig pppoe0 up
 	wait_for_session_established dontfail

Reply via email to