I have been trying to make changes to the go diameter base protocol (the baseXML) to implement Diameter Extensible Authentication Protocol (EAP) Application as the base protocol, that is implement DER/DEA but could not. The default base protocol implement the CER/CEA, that is the capabilities Exchange request and answer. I modified the baseXML with the DER/DEA below and run the "autogen.sh" script but the changes does not work. Am trying to implement an STa interface applicatiion but first i need to have the DER/DEA exchange work. Any idea as to how to make this changes.
This is except the XML i would like to use as the base protocol
var baseXML = xml.Header + `
<diameter>
<application id="0" type="auth" name="TGPP STA">
<command code="268" short="DE" name="Diameter-EAP">
<request>
<rule avp="Session-Id" required="true" max="1"/>
<rule avp="DRMP" required="false" max="1"/>
...
</request>
<answer>
<rule avp="Session-Id" required="true" max="1"/>
<rule avp="DRMP" required="false" max="1"/>
....
</answer>
</command>
<command code="274" short="AS" name="Abort-Session">
<request>
<rule avp="Session-Id" required="true" max="1"/>
<rule avp="DRMP" required="false" max="1"/>
...
</request>
<answer>
<rule avp="Session-Id" required="true" max="1"/>
<rule avp="DRMP" required="false" max="1"/>
...
</answer>
</command>
<command code="275" short="ST" name="Session-Termination">
<request>
<rule avp="Session-Id" required="true" max="1"/>
<rule avp="DRMP" required="false" max="1"/>
....
</request>
<answer>
<rule avp="Session-Id" required="true" max="1"/>
<rule avp="DRMP" required="false" max="1"/>
...
</answer>
</command>
<command code="258" short="RA" name="Re-Authentication">
<request>
<rule avp="Session-Id" required="true" max="1"/>
<rule avp="DRMP" required="false" max="1"/>
<rule avp="Origin-Host" required="true" max="1"/>
...
</request>
<answer>
<rule avp="Session-Id" required="true" max="1"/>
<rule avp="DRMP" required="false" max="1"/>
<rule avp="Result-Code" required="false" max="1"/>
...
</answer>
</command>
<command code="265" short="AA" name="Authentication-Authorization">
<request>
<rule avp="Session-Id" required="true" max="1"/>
<rule avp="DRMP" required="false" max="1"/>
<rule avp="Auth-Application-Id" required="true" max="1"/>
...
</request>
<answer>
<rule avp="Session-Id" required="true" max="1"/>
<rule avp="DRMP" required="false" max="1"/>
<rule avp="Auth-Application-Id" required="true" max="1"/>
....
</answer>
</command>
<!-- ************* DIAMETER STA AVPS ************ -->
<avp name="MIP6-Feature-Vector" code="124" must="M" may="-" must-not="V,P" may-encrypt="-">
<data type="Unsigned64"/>
</avp>
...
</application>
</diameter>`