networking

package
v0.0.0-...-25b8db7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

arpscan implements ARP scanning of all interfaces' local networks using gopacket and its subpackages. This example shows, among other things:

  • Generating and sending packet data
  • Reading in packet data and interpreting it
  • Use of the 'pcap' subpackage for reading/writing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArpScan

func ArpScan() (*[]net.IP, error)

func DialPort

func DialPort(ip string, port int, timeout time.Duration) error

func LookupAddresses

func LookupAddresses(ipRange string) ([]string, error)

Types

type DockerResponse

type DockerResponse struct {
	Info    types.Info `json:"info"`
	Address string     `json:"address"`
}

func CheckHostnamePorts

func CheckHostnamePorts(hostnames []string, port int) []DockerResponse

func CheckIpPorts

func CheckIpPorts(ips *[]net.IP, port int) []DockerResponse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL