Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetOutgoingCallReq ¶
func GetStartControlConnReq ¶
Types ¶
type PPTPAuthItem ¶
type PPTPAuthItem struct { Target string RAddrByte []byte LAddrByte []byte RMac []byte LMac []byte SNumber int // contains filtered or unexported fields }
func GetDefaultPPTPAuth ¶
func GetDefaultPPTPAuth() *PPTPAuthItem
func (*PPTPAuthItem) GetSetLinkInfo ¶
func (pptp *PPTPAuthItem) GetSetLinkInfo() map[string]any
func (*PPTPAuthItem) PPTPNegotiate ¶
func (pptp *PPTPAuthItem) PPTPNegotiate() (net.Conn, error)
func (*PPTPAuthItem) ProcessGre ¶
func (pptp *PPTPAuthItem) ProcessGre(messageNode *base.Node, replyChan chan []byte) error
type PPTPConfig ¶
type PPTPConfig struct { FramingCapabilities uint16 BearerCapabilities uint16 MaxChannels uint16 FirmwareRevision uint32 Hostname string Vendor string CallId uint16 PeerCallId uint16 CallSerialNumber uint16 MinimumBPS uint32 MaximumBPS uint32 BearerType uint32 FramingType uint32 RecvWindowSize uint16 ProcessingDelay uint16 PhoneNumberLength uint16 Reserved uint16 PhoneNumber string SubAddress string SendAccm uint32 RecvAccm uint32 }
func GetDefaultPPTPConfig ¶
func GetDefaultPPTPConfig() *PPTPConfig
func (*PPTPConfig) GetOutgoingCallReq ¶
func (c *PPTPConfig) GetOutgoingCallReq() map[string]any
func (*PPTPConfig) GetSetLinkInfo ¶
func (c *PPTPConfig) GetSetLinkInfo() map[string]any
func (*PPTPConfig) GetStartControlConnReq ¶
func (c *PPTPConfig) GetStartControlConnReq() map[string]any
Click to show internal directories.
Click to hide internal directories.