Get tcp.ack and tcp.seq in C

asked 2019-12-19 09:10:48 +0000

kchshark gravatar image

updated 2019-12-19 10:38:10 +0000

Hello. I have a question when writing a dissector in C. Is it Possible in a custom Protocol over tcp to obtain the values of seq and ack. I know in Lua i can use

tcp_ack_f = Field.new("tcp.ack")

tcp_seq_f = Field.new("tcp.seq")

local ack = tcp_ack_f()

local seq = tcp_seq_f()

But how i can get it in C?

edit retag flag offensive close merge delete