Where to find IPROTO_* constants? #10041
-
Hello! I've tried to find IPROTO_SPACE_ID, IPROTO_LIMIT, IPROTO_KEY constants definition in the project, but it didn't work out. They are used in this section of code https://github.com/tarantool/tarantool/blob/master/src/box/lua/net_box.c#L792 I need them to correctly debug my tcpdump data. Please help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
First, glance on the-tcpdump-group/tcpdump#1023 -- @0x501D added support for Tarantool's protocol parsing into tcpdump. Use There is a Wireshark's dissector as well: https://github.com/tarantool/tarantool-dissector. You may be also interested in a Scapy based sniffer: https://github.com/dsamirov/tarantool-iproto-sniffer. Answering your question, the constants are in the documentation. You can also look at the most actual constants in the source code (please, take into account that some of the constants are defined using a macro, so search for them without the |
Beta Was this translation helpful? Give feedback.
First, glance on the-tcpdump-group/tcpdump#1023 -- @0x501D added support for Tarantool's protocol parsing into tcpdump. Use
-T tarantool
CLI option.There is a Wireshark's dissector as well: https://github.com/tarantool/tarantool-dissector.
You may be also interested in a Scapy based sniffer: https://github.com/dsamirov/tarantool-iproto-sniffer.
Answering your question, the constants are in the documentation. You can also look at the most actual constants in the source code (please, take into account that some of the constants are defined using a macro, so search for them without the
IPROTO_
prefix).