Closed JulianSchmid closed 8 months ago
I agree that your proposal here is Better, but hopefully it doesn't block my workaround proposal I just pushed here:
https://github.com/JulianSchmid/etherparse/pull/66
Hope you're well!
Hi @robs-zeynet , support for Ipv4Header
& TcpHeader
default initialization have been merged to master already and also should be part of 0.14.0 .
I originally also wanted to include IpAuthHeader
& Ipv6RawExtHeader
as part of this issue. But in interest of getting a release out of the door I moved it into a separate issue: https://github.com/JulianSchmid/etherparse/issues/67
It would be nice if one could simply write:
But this currently causes a compile time error as both
Ipv4Header
as well asTcpHeader
contain private fields. In both of structs cases these private fields contain a buffer for options as well as a length for how much of the buffer is filled.We can get around this limitation by moving the buffers into their own types and making them public.