Python API for PPP PAP

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

Use alc.pppoe.getPAP() to get the alc.pap object in the input PPPoE packet.

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

Table: PAP header fields provides PAP header field information. alc.pap has following attributes to represent the PAP header fields:

Table: PAP header fields
Class attributes PAP field Access

alc.pap.code

Integer, code field in pap protocol header

Read

alc.pap.id

Integer, identifier field in pap protocol header

Read

alc.pap.len

Integer, length field in pap protocol header

Read

The following is a list of functions in the class: