First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

How to add a vendor to the Diameter dictionary

I am trying to add a vendor to my wireshark running on Windows. I modified the dictionary.xml as follows:

!ENTITY myvendor SYSTEM "myvendor .xml"
vendor vendor-id="myvendor " code="0000" name="myvendor "<br>
&myvendor ;

I also created the myvendor.xml file and added the custom attributes, for example:

?xml version="1.0" encoding="utf-8"?
  vendor vendor-id="myvendor "  code="0000" name="myvendor "
    avp name="Service-Name" code="14" mandatory="must" may-encrypt="yes" vendor-id="myvendor "
    type type-name="UTF8String"

Wireshark still does not recognize and decode the AVP when I open the pcap:

AVP Code: 13 Unknown

Unknown AVP 13 (vendor=myvendor), if you know what this is you can add it to dictionary.xml

Is there something missing?

vjokhoo's avatar
1
vjokhoo
asked 2020-01-17 14:34:15 +0000
Guy Harris's avatar
19.9k
Guy Harris
updated 2020-01-17 19:41:10 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

This is untested, but I think you have a missing </avp> closing tag in your vendor xml.

In dictionary.xml you need:

<!ENTITY myvendor SYSTEM "myvendor.xml"> 

&myvendor;

and in myvendor.xml you need:

<?xml version="1.0" encoding="utf-8"?>

<vendor vendor-id="myvendor" code="0000" name="myvendor"/>
    <avp name="Service-Name" code="14" mandatory="must" may-encrypt="yes" vendor-id="myvendor">
       <type type-name="UTF8String"/>
    </avp>

You also had trailing spaces in a few of the "myvendor" strings, probably best not to do that. I'm also not sure if you need the vendor-bit="must" attribute in the avp declaration.

grahamb's avatar
23.8k
grahamb
answered 2020-01-17 14:53:33 +0000
Guy Harris's avatar
19.9k
Guy Harris
updated 2020-01-17 19:40:52 +0000
edit flag offensive 0 remove flag delete link

Comments

Hi I've been trying for days to comment but my browser just goes blank. Finally trying from my mobile.

I initially didn't format my original message properly but all the relevant tags are there. I was however missing the closing vendor tag and added it but same problem.

vjokhoo's avatar vjokhoo (2020-01-21 14:23:42 +0000) edit

This is what myvendor.xml looks like now.

<?xml version="1.0" encoding="utf-8"?>
<vendor vendor-id="myvendor" code="0000" name="myvendor"/>
  <avp name="Service-Parameter" code="13" mandatory="must" may-encrypt="yes" vendor-id="myvendor">
    <grouped>
      <required>
        <gavp name="Service-Name" maximum="1"/>
        <gavp name="Service-Value" maximum="1"/>
      </required>
    </grouped>
  </avp>
  <avp name="Service-Name" code="14" mandatory="must" may-encrypt="yes" vendor-id="myvendor">
    <type type-name="UTF8String"/>
  </avp>
  <avp name="Service-Value" code="15" mandatory="must" may-encrypt="yes" vendor-id="myvendor">
    <type type-name="UTF8String"/>
  </avp>
</vendor>

Thanks for looking.

vjokhoo's avatar vjokhoo (2020-01-21 14:25:28 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer