Documentation ¶
Index ¶
- Constants
- type Node
- func (n *Node) Address() (net.IP, net.IPNet)
- func (n *Node) Admin() *admin.AdminSocket
- func (n *Node) Close()
- func (n *Node) Config() config.NodeConfig
- func (n *Node) Done() <-chan struct{}
- func (n *Node) GenerateConfig(privkey ed25519.PrivateKey, listen []string, peers []string, ...)
- func (n *Node) Run() error
- type YggdrasilNIC
- func (*YggdrasilNIC) ARPHardwareType() header.ARPHardwareType
- func (e *YggdrasilNIC) AddHeader(*stack.PacketBuffer)
- func (e *YggdrasilNIC) Attach(dispatcher stack.NetworkDispatcher)
- func (*YggdrasilNIC) Capabilities() stack.LinkEndpointCapabilities
- func (e *YggdrasilNIC) Close() error
- func (e *YggdrasilNIC) IsAttached() bool
- func (*YggdrasilNIC) LinkAddress() tcpip.LinkAddress
- func (e *YggdrasilNIC) MTU() uint32
- func (*YggdrasilNIC) MaxHeaderLength() uint16
- func (e *YggdrasilNIC) ParseHeader(*stack.PacketBuffer) bool
- func (*YggdrasilNIC) Wait()
- func (e *YggdrasilNIC) WritePackets(list stack.PacketBufferList) (int, tcpip.Error)
- func (e *YggdrasilNIC) WriteRawPacket(*stack.PacketBuffer) tcpip.Error
- type YggdrasilNetstack
- func (s *YggdrasilNetstack) DialContext(ctx context.Context, network, address string) (net.Conn, error)
- func (s *YggdrasilNetstack) DialTCP(addr *net.TCPAddr) (net.Conn, error)
- func (s *YggdrasilNetstack) DialUDP(addr *net.UDPAddr) (net.PacketConn, error)
- func (s *YggdrasilNetstack) ListenTCP(addr *net.TCPAddr) (net.Listener, error)
- func (s *YggdrasilNetstack) ListenUDP(addr *net.UDPAddr) (net.PacketConn, error)
- func (s *YggdrasilNetstack) NewYggdrasilNIC(ygg *core.Core) tcpip.Error
Constants ¶
View Source
const (
// The port on the C2 which Comosum clients connect to.
C2_PORT = 45235
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) Admin ¶
func (n *Node) Admin() *admin.AdminSocket
func (*Node) Config ¶
func (n *Node) Config() config.NodeConfig
func (*Node) GenerateConfig ¶
type YggdrasilNIC ¶
type YggdrasilNIC struct {
// contains filtered or unexported fields
}
func (*YggdrasilNIC) ARPHardwareType ¶
func (*YggdrasilNIC) ARPHardwareType() header.ARPHardwareType
func (*YggdrasilNIC) AddHeader ¶
func (e *YggdrasilNIC) AddHeader(*stack.PacketBuffer)
func (*YggdrasilNIC) Attach ¶
func (e *YggdrasilNIC) Attach(dispatcher stack.NetworkDispatcher)
func (*YggdrasilNIC) Capabilities ¶
func (*YggdrasilNIC) Capabilities() stack.LinkEndpointCapabilities
func (*YggdrasilNIC) Close ¶
func (e *YggdrasilNIC) Close() error
func (*YggdrasilNIC) IsAttached ¶
func (e *YggdrasilNIC) IsAttached() bool
func (*YggdrasilNIC) LinkAddress ¶
func (*YggdrasilNIC) LinkAddress() tcpip.LinkAddress
func (*YggdrasilNIC) MTU ¶
func (e *YggdrasilNIC) MTU() uint32
func (*YggdrasilNIC) MaxHeaderLength ¶
func (*YggdrasilNIC) MaxHeaderLength() uint16
func (*YggdrasilNIC) ParseHeader ¶
func (e *YggdrasilNIC) ParseHeader(*stack.PacketBuffer) bool
func (*YggdrasilNIC) Wait ¶
func (*YggdrasilNIC) Wait()
func (*YggdrasilNIC) WritePackets ¶
func (e *YggdrasilNIC) WritePackets( list stack.PacketBufferList, ) (int, tcpip.Error)
func (*YggdrasilNIC) WriteRawPacket ¶
func (e *YggdrasilNIC) WriteRawPacket(*stack.PacketBuffer) tcpip.Error
type YggdrasilNetstack ¶
type YggdrasilNetstack struct {
// contains filtered or unexported fields
}
func CreateYggdrasilNetstack ¶
func CreateYggdrasilNetstack(ygg *Node) (*YggdrasilNetstack, error)
func (*YggdrasilNetstack) DialContext ¶
func (*YggdrasilNetstack) DialUDP ¶
func (s *YggdrasilNetstack) DialUDP(addr *net.UDPAddr) (net.PacketConn, error)
func (*YggdrasilNetstack) ListenUDP ¶
func (s *YggdrasilNetstack) ListenUDP(addr *net.UDPAddr) (net.PacketConn, error)
func (*YggdrasilNetstack) NewYggdrasilNIC ¶
func (s *YggdrasilNetstack) NewYggdrasilNIC(ygg *core.Core) tcpip.Error
Click to show internal directories.
Click to hide internal directories.