Python API for PPP CHAP

The system provides a python object for CHAP packet encapsulated in the input PPPoE packets: alc.chap.

Use alc.pppoe.getCHAP() to get the alc.chap object in the input PPPoE packet.

To apply changes to PAP packet, alc.pppoe.setCHAP(new_alc.pap_obj) need to be called.

Table: CHAP header fields provides CHAP header field information. alc.chap has following attributes to represent the CHAP header fields:

Table: CHAP header fields
Class attributes PAP field Access

alc.chap.code

Integer, code field in chap protocol header

Read

alc.chap.id

Integer, identifier field in chap protocol header

Read

alc.chap.len

Integer, length field in chap protocol header

Read

The following is a list of functions in the class: