PPPOE

Overview

Copyright (C) 2004-2022 OKTET Labs Ltd. More…

// global functions

te_errno tapi_pppoe_add_csap_layer(asn_value** csap_spec, uint8_t version, uint8_t type, uint8_t code, uint16_t session_id, uint16_t length);
te_errno tapi_pppoe_add_pdu(asn_value** tmpl_or_ptrn, asn_value** pdu, bool is_pattern, uint8_t version, uint8_t type, uint8_t code, uint16_t session_id, uint16_t length);

Detailed Documentation

Copyright (C) 2004-2022 OKTET Labs Ltd. All rights reserved.

Global Functions

te_errno tapi_pppoe_add_csap_layer(asn_value** csap_spec, uint8_t version, uint8_t type, uint8_t code, uint16_t session_id, uint16_t length)

Add PPP layer in CSAP specification.

Parameters:

csap_spec

Location of CSAP specification pointer.

Status

code.

te_errno tapi_pppoe_add_pdu(asn_value** tmpl_or_ptrn, asn_value** pdu, bool is_pattern, uint8_t version, uint8_t type, uint8_t code, uint16_t session_id, uint16_t length)

Add PPP PDU as the last PDU to the last unit of the traffic template or pattern.

Parameters:

tmpl_or_ptrn

Location of ASN.1 value with traffic template or pattern

pdu

Location for ASN.1 value pointer with added PDU

is_pattern

Is the first argument template or pattern

group_addr

Protocol.

Returns:

Status code.