Rubensei / windivert-rust

Rust bindings and wrapper around WinDivert user library
GNU Lesser General Public License v3.0
42 stars 8 forks source link

Passing `None` to `recv()` gives an `InsufficientBuffer` error. #7

Open Rubensei opened 1 year ago

Rubensei commented 1 year ago
          Passing None to [WinDivertRecv](https://reqrypt.org/windivert-doc.html#divert_recv) gives me an immediate InsufficientBuffer error.

Originally posted by @AriFordsham in https://github.com/Rubensei/windivert-rust/issues/5#issuecomment-1691746982

Rubensei commented 1 year ago

It seems I misunderstood the optionallity of the buffer and it's not actually optional for data capturing layers

I'll update recv methods acordingly but since it's a breaking change it will included in 0.7.X release