Documentation ¶
Index ¶
- Constants
- Variables
- func GbkToUtf8(s []byte) ([]byte, error)
- func ListNetworkAdapter() ([]string, error)
- func ListNetworkDev() ([]string, error)
- func SelectNetworkAdapter(adapter string) (net.HardwareAddr, error)
- func SelectNetworkDev(dev string) (*pcap.Interface, error)
- func Symmetric(data []byte)
- type CronItem
- type Crontab
- func (c *Crontab) Close()
- func (c *Crontab) Delete(name string) bool
- func (c *Crontab) Exist(name string) bool
- func (c *Crontab) ForceRegister(name string, item *CronItem)
- func (c *Crontab) Register(name string, item *CronItem)
- func (c *Crontab) Run() error
- func (c *Crontab) UpdateLastAccess(name string, tm time.Time) bool
- type Handle
- func (h *Handle) Close()
- func (h *Handle) SendEchoPkt(echoNo, echoKey uint32) error
- func (h *Handle) SendLogoffPkt() error
- func (h *Handle) SendResponseIdentity(id uint8, identity []byte) error
- func (h *Handle) SendResponseMD5Chall(id uint8, salt, user, pass []byte) error
- func (h *Handle) SendStartPkt() error
- func (h *Handle) SetDstMacAddr(addr net.HardwareAddr)
- type Service
- type SrvStat
Constants ¶
View Source
const ( SrvStatStart = SrvStat(iota) SrvStatRespIdentity SrvStatRespMd5Chall SrvStatSuccess SrvStatFailure SrvStatKeepAlive SrvStatError )
Variables ¶
View Source
var ( DefaultSnaplen int32 = 1024 // MultiCastAddr = net.HardwareAddr{0x01, 0x80, 0xc2, 0x00, 0x00, 0x03} MultiCastAddr = net.HardwareAddr{0x01, 0xD0, 0xF8, 0x00, 0x00, 0x03} )
Functions ¶
func ListNetworkAdapter ¶
func ListNetworkDev ¶
func SelectNetworkAdapter ¶
func SelectNetworkAdapter(adapter string) (net.HardwareAddr, error)
Types ¶
type CronItem ¶
func NewCronItem ¶
type Crontab ¶
type Crontab struct {
// contains filtered or unexported fields
}
func NewCrontab ¶
func NewCrontab() *Crontab
func (*Crontab) ForceRegister ¶
type Handle ¶
func (*Handle) SendEchoPkt ¶
func (*Handle) SendLogoffPkt ¶
func (*Handle) SendResponseIdentity ¶
func (*Handle) SendResponseMD5Chall ¶
func (*Handle) SendStartPkt ¶
func (*Handle) SetDstMacAddr ¶
func (h *Handle) SetDstMacAddr(addr net.HardwareAddr)
type Service ¶
type Service struct { State SrvStat // contains filtered or unexported fields }
func NewService ¶
func (*Service) GetAdvertisement ¶
Click to show internal directories.
Click to hide internal directories.