Skip to content
  • David Perry's avatar
    Change some `wmem_packet_scope() to `pinfo->pool` · b813c664
    David Perry authored and AndersBroman's avatar AndersBroman committed
    As requested [here][1], help with removing calls to
    `wmem_packet_scope()` in favour of references to `pinfo->pool`.
    
    * Plugins chosen semi-alphabetically.
    * When a calling function already has a `pinfo` argument, use that.
    * If a function seems narrowly focused on getting and (possibly)
      returning memory, change the function signature to take a
      `wmem_allocator_t *`.
    * If it seems more focused on packet-based operations, pass in a
      `packet_info *` instead and use `pinfo->pool` within.
    * This is meant to be a light first pass for quick wins.
      Some of the files affected by this MR still have references to
      `wmem_packet_scope()` where it would take significant work to remove.
      These will need revisiting later.
    
    [1]: https://www.wireshark.org/lists/wireshark-dev/202107/msg00052.html
    b813c664
Loading