Documentation ¶
Index ¶
- Variables
- func CombineInt8(high, low uint8) uint16
- func GetIP(hostname string) string
- func IsIPv4(address string) bool
- func IsIPv6(address string) bool
- func MessageRead(c *icmp.PacketConn) (*string, error)
- func MessageSend(c *icmp.PacketConn, message *string)
- func RawMessageSend(c *icmp.PacketConn, message *string, id uint16, seq uint16, mtype icmp.Type, ...)
- func SetListenIP(hostname string)
- func SetTargetIP(hostname string)
- func SplitInt16(i uint16) (uint8, uint8)
- type MessageData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TargetIP *net.IPAddr ListenIP string BlockSize = 1200 VerboseMode bool )
Functions ¶
func CombineInt8 ¶
Combine (hign uint8, low uint8) and return uint16.
func MessageSend ¶
func MessageSend(c *icmp.PacketConn, message *string)
Send message to TargetIP using ICMP.
func RawMessageSend ¶
func SplitInt16 ¶
Split uint16 in to two uint8, return (hign uint8, low uint8).
Types ¶
type MessageData ¶
type MessageData struct { Type int Code int Checksum int Id int Seq int Data []byte DataLen int IP string }
func RawMessageRead ¶
func RawMessageRead(c *icmp.PacketConn) MessageData
Click to show internal directories.
Click to hide internal directories.