|
I want to write a dissector to manage some header extensions for RTP protocol. Searching in code, I saw that we need to write a sub-dissector and that it would be called instead of the generic header extension, but how do I register my dissector to the list of sub-dissectors in Lua? UpdateWhere is the payload type string locate? In the packet I want to analyses, it said that payload type is I think the real payload type is defined in a RTSP/SDF packet I received a fiew packets ago. Here is it's RTSP content: RTSP/1.0 200 OK CSeq: 2 Connection: Keep-Alive Content-Base: rtsp://10.2.23.28/Storage/ Content-Type: application/sdp Content-Length: 166 v=0o=- 1 1 IN IP4 10.2.23.28 s=Media Presentation e=NONE c=IN IP4 0.0.0.0 t=0 0 a=control:* m=video 0 RTP/AVP 98 a=rtpmap:98 H264/90000 a=control:trackID=1 With that said, what should be the payload_str_type? |
|
This should work: local proto_foo = Proto("foo", "Foo Protocol")
where a=rtpmap:98 H264/90000 So, you would use: DissectorTable.get('rtp_hdr_ext'):add('H264', proto_foo)
Unfortunately, Bug 5208 prevents this subdissector from being called. UPDATE: According to DissectorTable.get('rtp_hdr_ext'):add(0xA123, proto_foo)
You can try SVN 40834 (or later) or download an automated build. Tanks for your answer. But I am not sure what the payload_type_str is suppose to be in my case. I've just edit my initial question to explain further my situation. Can you please have a look?
(27 Jan '12, 05:44)
mdesharnais
|
