Source-Changes-HG archive

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

[src/trunk]: src/tests/net/if_pppoe Add a limit for auth at a test for invali...



details:   https://anonhg.NetBSD.org/src/rev/8d2080e282a2
branches:  trunk
changeset: 944204:8d2080e282a2
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Wed Sep 23 06:18:20 2020 +0000

description:
Add a limit for auth at a test for invalid account

diffstat:

 tests/net/if_pppoe/t_pppoe.sh |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 5b3dc5baf036 -r 8d2080e282a2 tests/net/if_pppoe/t_pppoe.sh
--- a/tests/net/if_pppoe/t_pppoe.sh     Wed Sep 23 05:56:55 2020 +0000
+++ b/tests/net/if_pppoe/t_pppoe.sh     Wed Sep 23 06:18:20 2020 +0000
@@ -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 @@
        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 @@
        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



Home | Main Index | Thread Index | Old Index