UDP Format(4.2)

If UDRs are expected as reply back to the collector from the APL agent, the internal format must be extended to contain the built-in UDP format.

external my_ext {
  // field definitions
  int type : static_size(1);
  ascii Anum : static_size(8);
  ascii Bnum : terminated_by(0xA);
};


internal UDP_Int : 
   extends_class( "com.digitalroute.udp.agent.UDPPacketUDR" ) {
};


in_map UDP_InMap :
    external( my_ext ),
    internal( UDP_Int ),
    target_internal( my_UDP_TI ) {
    automatic;
};


decoder myDecoder : in_map( UDP_InMap );