Python policy – GTPv1-C API

The system provides a Python object for input GTPv1-C packet alc.gtp1c. The alc.gtp1c packet has following attributes to represent the GTPv1-C header fields as displayed in Table: GTPv1-C header fields .

Table: GTPv1-C header fields
Class attributes GTPv1-C header field Access

alc.gtp1c.version

Integer, version field in the header

Read

alc.gtp1c.ptbit

boolean, true mean 1, false means 0; PT bit in the header

Read

alc.gtp1c.ebit

boolean, E bit in the header

Read

alc.gtp1c.sbit

boolean, S bit in the header

Read

alc.gtp1c.pnbit

boolean, PN bit in the header

Read

alc.gtp1c.type

Integer message type field in the header

Read

alc.gtp1c.len

Integer message length field in the header

Read

alc.gtp1c.teid

Unsigned integer, or None if TEID does not exist

Read

alc.gtp1c.seq

Integer sequence number in the header

Read

alc.gtp1c.npdu_number

Integer N-PDU Number field in the header

Read

alc.gtp1c.next_ext_type

Integer Next Extension Type field in the header

Read

alc.gtp1c.ext_list

Tuple, a tuple of extension headers; each element in the tuple represent one extension header: (ext_type, ext_content)

Read

The following is a list of alc.gtp1c functions: