I have a dissector that was working fine in the 1.10 series and made use of se_new() and <epan emem.h="">. This didn't build in 1.12.0, I switched all calls to wmem_new(wmem_file_scope(), ). It build fine but blows up when I try to capture things. Examples below. check_key = se_new(gint) -> check_key = wmem_new(wmem_file_scope(), gint) p_add_proto_data(pinfo->fd, proto_frame, 0, request_info) -> p_add_proto_data(wmem_file_scope(), pinfo->fd, proto_frame, 0, request_info); p_remove_proto_data(pinfo->fd, proto_frame, 0) -> p_remove_proto_data(wmem_file_scope(), pinfo->fd, proto_frame, 0) I can't seem to find any documentation on wmwm_new(). I also have no idea when to use wmem_file_scope() vs wmem_packet_scope(). Thanks, Brian asked 26 Aug '14, 10:58 brwiese |
One Answer:
It looks like you are passing Also, For help with wmem and memory pools, start with answered 26 Aug '14, 12:33 cmaynard ♦♦ |
Thank you, the pinfo->fd seems to be the problem.
Sincerely, Brian