JulianSchmid / etherparse

A rust library for parsing ethernet & ethernet using protocols.
Apache License 2.0
285 stars 54 forks source link

Add Deref to &[u8] for SlicedPacket #61

Closed nagy closed 5 months ago

JulianSchmid commented 5 months ago

Hi @nagy ,

Thanks for the PR, but I don't think that calling deref on a sliced packet should return the payload slice. I would like the getting of the payload explicit.

Greets & Thanks Julian