Versions in this module Expand all Collapse all v0 v0.1.0 Apr 16, 2023 Changes in this version + const Broadcast + const BroadcastWireless + const DirectedWireless + const Meta + const PhysLink + type Child interface + Push_down func([]byte, int) + type MediaType int + type Msg_xfer interface + Xfer func([]byte) []byte + type NIC struct + Endpoints map[int]bool + IPAdrs net.IP + Id int + MAC net.Interface + MAC_is_symbolic bool + Media MediaType + SymMAC int + func New(name string, macname string, ipaddr string, media_type MediaType) (*NIC, error) + func (n *NIC) AddEndpoint(ep int) + func (n *NIC) AddEndpointSet(eps map[int]bool) + type Parent interface + Push_up func([]byte, int) + type Protocol_node struct + Children map[int]Child + Id int + Name string + Parents map[int]Parent + Xfer_down Msg_xfer + Xfer_up Msg_xfer + func (pn *Protocol_node) Add_child(child *Protocol_node, child_id int) + func (pn *Protocol_node) Add_parent(parent *Protocol_node, parent_id int) + func (pn *Protocol_node) Handle(context any, message any) + func (pn *Protocol_node) Push_down(frame []byte, from int) + func (pn *Protocol_node) Push_up(context Protocol_node_context, frame []byte, from int) + type Protocol_node_context struct + Evtm *evtm.EventManager + Index int + type SMP struct + DstIP net.IP + DstMAC net.Interface + DstPort int + PayLoad []byte + RawPacket []byte + SrcIP net.IP + SrcMAC net.Interface + SrcPort int