hi again , after i made the necessary changes to libpcap api and wrote a pcap-septel.c using the septel library files , i need to know now ,if you dont mind , what changes do i have to make to ethereal so that it will support it .
as i think it should be something like capture_septel routine , but i'm still not quiet sure .
For Ethereal:
1) Add a capture_mtp2() routine to epan/dissectors/packet-mtp2.c
2) Add to the switch statement in capture_loop_packet_cb() a case for WTAP_ENCAP_MTP2 to call capture_mtp2().
sorry if i had to send this message to tcpdump because it's the same topic .
I assume you mean here that you're also asking how to add support to tcpdump (if not, the topic isn't exactly the same, so the question should've been asked on ethereal-dev).
If so, you'd:
1) write an MTP2 dissector (print-mtp2.c);
2) add to the "printers[]" array an entry
#ifdef DLT_MTP2 { mtp2_if_print, DLT_MTP2 }, #endif - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.