Documentation ¶
Index ¶
- func ARPScanHost(iface string, targetIP string) (string, error)
- func CraftPacket(layers ...gopacket.Layer) ([]byte, error)
- type ARP
- type DHCP
- func (d *DHCP) AddOption(optType string, data interface{})
- func (d *DHCP) Layer() *golayers.DHCPv4
- func (d *DHCP) SetDstIP(ipStr string) error
- func (d *DHCP) SetDstMac(macStr string) error
- func (d *DHCP) SetMsgType(msgType string)
- func (d *DHCP) SetNextServerIP(serverIP string)
- func (d *DHCP) SetReply()
- func (d *DHCP) SetRequest()
- func (d *DHCP) SetSrcIP(ipStr string) error
- func (d *DHCP) SetType(linkType golayers.LinkType)
- func (d *DHCP) SetXid(xid uint32)
- type DNS
- type Dot1Q
- type Dot3
- type Ethernet
- type ICMPv4
- type IPv4
- type IPv6
- type LLC
- type RIP
- type STP
- func (stp *STP) Layer() *layers.STP
- func (stp *STP) SetBridgeID(bridgeID uint16)
- func (stp *STP) SetBridgeMacStr(bridgeMac string)
- func (stp *STP) SetBridgePriority(priority uint16)
- func (stp *STP) SetRootBridgeID(rootBridgeID uint16)
- func (stp *STP) SetRootBridgeMacStr(rootMac string)
- func (stp *STP) SetRootBridgePriority(priority uint16)
- type TCP
- type UDP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ARP ¶
type ARP struct {
// contains filtered or unexported fields
}
func (*ARP) SetRequest ¶
func (a *ARP) SetRequest()
type DHCP ¶
type DHCP struct {
// contains filtered or unexported fields
}
func (*DHCP) SetMsgType ¶
func (*DHCP) SetNextServerIP ¶
func (*DHCP) SetRequest ¶
func (d *DHCP) SetRequest()
type Dot1Q ¶
type Dot1Q struct {
// contains filtered or unexported fields
}
func (*Dot1Q) SetPriority ¶
SetPriority Set Priority Code Point (PCP)
func (*Dot1Q) SetType ¶
func (dot1q *Dot1Q) SetType(etherType golayers.EthernetType)
SetType Set the Type field
func (*Dot1Q) SetVLANIdentifier ¶
SetVLANIdentifier Set the VLAN identifier
type Dot3 ¶
type Dot3 struct {
// contains filtered or unexported fields
}
type Ethernet ¶
type Ethernet struct {
// contains filtered or unexported fields
}
func EthernetLayer ¶
func EthernetLayer() *Ethernet
func (*Ethernet) SetEthernetType ¶
func (e *Ethernet) SetEthernetType(ethType golayers.EthernetType)
type ICMPv4 ¶
type ICMPv4 struct {
// contains filtered or unexported fields
}
func ICMPv4Layer ¶
func ICMPv4Layer() *ICMPv4
func (*ICMPv4) SetChecksum ¶
func (*ICMPv4) SetTypeCode ¶
func (icmp *ICMPv4) SetTypeCode(TypeCode golayers.ICMPv4TypeCode)
type IPv4 ¶
type IPv4 struct {
// contains filtered or unexported fields
}
func (*IPv4) SetProtocol ¶
func (ip *IPv4) SetProtocol(protocol golayers.IPProtocol)
type RIP ¶
type RIP struct {
// contains filtered or unexported fields
}
func (*RIP) SetCommand ¶
func (*RIP) SetVersion ¶
type STP ¶
type STP struct {
// contains filtered or unexported fields
}
func (*STP) SetBridgeID ¶
func (*STP) SetBridgeMacStr ¶
SetBridgeMacStr set Bridge Mac from a string
func (*STP) SetBridgePriority ¶
func (*STP) SetRootBridgeID ¶
func (*STP) SetRootBridgeMacStr ¶
SetRootBridgeMacStr set Root Mac from a string
func (*STP) SetRootBridgePriority ¶
type TCP ¶
type TCP struct {
// contains filtered or unexported fields
}
func (*TCP) SetDstPort ¶
func (*TCP) SetSrcPort ¶
type UDP ¶
type UDP struct {
// contains filtered or unexported fields
}
func (*UDP) SetDstPort ¶
func (*UDP) SetSrcPort ¶
Click to show internal directories.
Click to hide internal directories.