Documentation ¶
Overview ¶
Package ipxpkt implements a packet router that wraps Ethernet frames in IPX packets using the protocol from the IPXPKT.COM DOS packet driver.
Index ¶
Constants ¶
const (
HeaderLength = 4
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Header ¶
Header represents the fragmentation header for an ipxpkt fragment.
func (*Header) MarshalBinary ¶
MarshalBinary populates a slice of bytes from an ipxpkt header.
func (*Header) UnmarshalBinary ¶
UnmarshalBinary decodes an ipxpkt header from a slice of bytes.
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router implements the ipxpkt protocol and implements the same DuplexEthernetStream interface as a real physical Ethernet link; it communicates by sending and receiving IPX packets.
func (*Router) ReadPacketData ¶
func (r *Router) ReadPacketData() ([]byte, gopacket.CaptureInfo, error)
readFrame reads an Ethernet frame from the router; it will block until a complete frame arrives from another node.
func (*Router) WritePacketData ¶
WritePacketData writes an Ethernet frame to the router; this will be wrapped and fragmented into one or more ipxpkt frames and written to the IPX network.