Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Get tcp.ack and tcp.seq in C

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?

Get tcp.ack and tcp.seq in C

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?

Get tcp.ack and tcp.seq in C

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?