PDL compile error

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf PDL compile error

  • Creator
    Topic
  • #48230
    Doug Essner
    Participant

      We are trying to create a PDL with custom encapsulation characters.

      The mlp_tcp.pdl    uses    

      We  need      

      The script code uses the character represented by these hex codes.  We are having trouble determing the character for x9b.  Is it possible to give the hex value in the PDL script code??

    Viewing 0 reply threads
    • Author
      Replies
      • #58083
        Anonymous
        Participant

          Doug,

          I don’t see any way to add to the list of named character classes.  However, you have a couple of choices to make it work anyway.

          You could remove the beginning character from the pdl phrase and write a prewrite TPS procedure to add that character to the beginning of every message.

          Or, if you want to exercise your PDL skills, you could make the first character a field instead of a character class.  Then you could use TCL within the PDL to put a 9b into that field.

          Your phrase would look like:

          define phrase basic-msg;

             field 9b = fixed-array(1, any );

             field data = variable-array( not( ) );

             ; ;

          end phrase;

          Reading this phrase is easy, you don’t need to make any changes.

          To write this phrase you’ll have to add some code to the the write portion of the PDL.  Something like:

             keylset klOutbound 9b

               keylset klOutbound data

              ]

                 hci_pd_send basic-msg $klOutbound $continuations

          Viewing 0 reply threads
          • The forum ‘Cloverleaf’ is closed to new topics and replies.