How do I use the fragment_add_seq_check function in UDP packet reassembly?

asked 2017-12-14 15:25:16 +0000

mest112 gravatar image

updated 2017-12-14 16:41:27 +0000

grahamb gravatar image

I'm writing a dissector which dissects multiple UPD packets, this is where I'm apparently supposed to use reassembly.

I'm a little bit confused on this function

fragment_add_seq_check(reassembly_table *table, tvbuff_t *tvb, const int offset,
                       const packet_info *pinfo, const guint32 id,
                       const void *data,
                       const guint32 frag_number, const guint32 frag_data_len,
                       const gboolean more_frags)

I understand the first 3 parameters, but the rest are beyond me. What do id, frag_number, data_len and more_frags mean and how do I obtain them? I did check the documentation in epan/reassemble.h, but it's still not clear to me how to use this function.

edit retag flag offensive close merge delete