Right now, packets cannot be written out unless they are fully-assembled transport-layer TCP/UDP packets. In other words, the write function is only implemented for PacketBuilderStep<UdpHeader> and PacketBuilderStep<TcpHeader>:
However, there might be use cases for etherparse where a programmer may want to write an IP packet with a custom transport protocol or handle the protocol assembly and writing themselves. I suggest implementing write for PacketBuilderStep<IpHeader> to support this use case!
Right now, packets cannot be written out unless they are fully-assembled transport-layer TCP/UDP packets. In other words, the
write
function is only implemented forPacketBuilderStep<UdpHeader>
andPacketBuilderStep<TcpHeader>
:However, there might be use cases for
etherparse
where a programmer may want to write an IP packet with a custom transport protocol or handle the protocol assembly and writing themselves. I suggest implementingwrite
forPacketBuilderStep<IpHeader>
to support this use case!