You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create packets in-place without ethernet frames (e.x. for direct Wireguard encapsulation), but this library seems useless because it does not allow starting from just any kind of packet.
The text was updated successfully, but these errors were encountered:
Right now the builder pattern only deems starting from Ethernet as a valid transition from the starting state (RawState). However, this can easily be changed/fixed by adjusting the state machine to implement any type of packet from RawState.
If you think this would be helpful, I can quickly change the code to accommodate for this. Then you can create packets in-place without Ethernet headers.
But I just want to mention that you could still build this kind of packet right now with this library. You would just need to not use the builder pattern, but the packet writers directly. Although, it would be nicer if the builder would handle this.
I am trying to create packets in-place without ethernet frames (e.x. for direct Wireguard encapsulation), but this library seems useless because it does not allow starting from just any kind of packet.
The text was updated successfully, but these errors were encountered: