Lines Matching refs:PPP_CHAP
389 chap_challenge = PPP() / PPP_CHAP(code=1, id=47, value=b'B' * 7,
407 chap_response = PPP() / PPP_CHAP(code='Response', id=47, value=b'\x00' * 16, optional_name='client')
430 chap_success = PPP() / PPP_CHAP(code='Success', id=47)
436 assert PPP_CHAP in chap_success_pkt
437 assert chap_success_pkt[PPP_CHAP].code == 3
438 assert chap_success_pkt[PPP_CHAP].id == 47
439 assert chap_success_pkt[PPP_CHAP].data == b''
440 assert chap_success_pkt[PPP_CHAP].summary() in ['CHAP Success message=\'\'', 'CHAP Success message=…
449 chap_failure = PPP() / PPP_CHAP(code='Failure', id=47, data='Go away')
455 assert PPP_CHAP in chap_failure_pkt
456 assert chap_failure_pkt[PPP_CHAP].code == 4
457 assert chap_failure_pkt[PPP_CHAP].id == 47
458 assert chap_failure_pkt[PPP_CHAP].data == b'Go away'
459 assert chap_failure_pkt[PPP_CHAP].summary() in ['CHAP Failure message=\'Go away\'', 'CHAP Failure m…