convert_proto_tree_add_text.pl is not generating any output file

asked 2018-09-28 09:21:22 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Hi,

i am trying to migrate one plugin from wireshark 1.12.8 to wireshark 2.6.3 the existing packet-xxx.c file has prototreeadd_item() API calls which are removed from 2.6.3.

i do observe a tool convertprototreeaddtext.pl and tried to run it as mentioned below,

./convert_proto_tree_add_text.pl --action=generate --encoding=ENC_LITTLE_ENDIAN packet-fapi.c
./convert_proto_tree_add_text.pl --action=fix-all --encoding=ENC_LITTLE_ENDIAN packet-fapi.c

output:

root@epc:~/raju/wireshark-wireshark-2.6.3/tools# ./convert_proto_tree_add_text.pl --action=generate --encoding=ENC_LITTLE_ENDIAN packet-fapi.c
root@epc:~/raju/wireshark-wireshark-2.6.3/tools#./convert_proto_tree_add_text.pl --action=fix-all --encoding=ENC_LITTLE_ENDIAN packet-fapi.c
Couldn't open packet-fapi.c.proto_tree_input at ./convert_proto_tree_add_text.pl line 201.

it seems step1 is not generated any output file which is input for step2.

can you please let me know how to overcome this issue??

Thanks, Raju

edit retag flag offensive close merge delete

Comments

Give the path to packet-fapi.c

Anders gravatar imageAnders ( 2018-09-28 10:36:39 +0000 )edit

packet-fapi.c file is located in the same location ~/raju/wireshark-wireshark-2.6.3/tools.

Kuru4634 gravatar imageKuru4634 ( 2018-09-28 10:52:59 +0000 )edit