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 Disable rechallenge for chap test case.



details:   https://anonhg.NetBSD.org/src/rev/127c97f3be4d
branches:  trunk
changeset: 347737:127c97f3be4d
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Wed Sep 14 01:48:08 2016 +0000

description:
Disable rechallenge for chap test case.

NetBSD's PPPoE client doesn't support chap rechallenge yet.

>From Shoichi YAMAGUCHI<s-yamaguchi@IIJ>, Thanks.

diffstat:

 tests/net/if_pppoe/t_pppoe.sh |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r ab499636eb2b -r 127c97f3be4d tests/net/if_pppoe/t_pppoe.sh
--- a/tests/net/if_pppoe/t_pppoe.sh     Wed Sep 14 00:41:04 2016 +0000
+++ b/tests/net/if_pppoe/t_pppoe.sh     Wed Sep 14 01:48:08 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_pppoe.sh,v 1.3 2016/09/12 14:47:24 christos Exp $
+#      $NetBSD: t_pppoe.sh,v 1.4 2016/09/14 01:48:08 knakahara Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -102,11 +102,18 @@
        local auth=$1
        setup
 
+       # As pppoe client doesn't support rechallenge yet.
+       local server_optparam=""
+       if [ $auth = "chap" ]; then
+               server_optparam="norechallenge"
+       fi
+
        export RUMP_SERVER=$SERVER
        local setup_serverparam="pppoectl pppoe0 hisauthproto=$auth \
                                    'hisauthname=$AUTHNAME' \
                                    'hisauthsecret=$SECRET' \
-                                   'myauthproto=none'"
+                                   'myauthproto=none' \
+                                   $server_optparam"
        atf_check -s exit:0 -x "$HIJACKING $setup_serverparam"
        atf_check -s exit:0 rump.ifconfig pppoe0 up
        unset RUMP_SERVER



Home | Main Index | Thread Index | Old Index