Hello, I want to ask some questions about diameter protocol : I have donwloaded the source code of wireshark and I go into the folder wireshark-2.0.2/epan to see the file diam_dict.l
asked 21 Apr '16, 07:40 bohao |
2 Answers:
No, just Flex (and it's required Flex for a while now; the version in the trunk not only requires Flex, it requires a version new enough to support reentrant parsers). There's no YACC/Bison/Berkeley YACC parser there.
They're not together - there is no YACC file.
In addition to making sure that an XML parser will actually accept the dictionary, also make sure that libxml2 can be made to work on all our supported platforms, including Windows, and that you don't depend on features of libxml2 only available in versions of libxml2 not present in commonly-used versions of {Linux distributions, *BSDs, OS X, other commercial UN*Xes} that bundle libxml2 (it'd be best if Wireshark could build on those versions without the user having to install a newer version of libxml2). answered 21 Apr '16, 14:01 Guy Harris ♦♦ |
I think to know why we'd have to ask the original author who hasn't been working on Wireshark in some time. IOW I don't think it will be easy to find out. But, see the next paragraph. For question (3) I'd suggest first checking if the the XML is actually syntactically correct. A while back I ran xmllint on it and cleaned up a lot of the errors but there were still a large number left--mostly things that, frankly, it didn't seem worth fixing. IOW a proper XML parser may not be happy with our (pseudo-?) XML. This may be part of the reason we don't use a proper XML parser. Oh, actually the first commit of diam_dict.l indicates that we used to use libxml but that it was intentionally dropped:
Thank you. (22 Apr ‘16, 00:25) bohao |
Thank you so much for your answer, that really helped me a lot.
Good day.