tui

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_ETHER_TYPE = "IPv4"
)

TODO: この辺りLABELとrenameした方が分かりやすそう

Variables

View Source
var (
	DEFAULT_NW_INTERFACE = "" // TODO: 良くない直す

	DEFAULT_MAC_DESTINATION = ""
	DEFAULT_MAC_SOURCE      = ""

	DEFAULT_ARP_HARDWARE_TYPE = "0x0001"
	DEFAULT_ARP_PROTOCOL_TYPE = "0x0800"
	DEFAULT_ARP_HARDWARE_SIZE = "0x06"
	DEFAULT_ARP_PROTOCOL_SIZE = "0x04"
	DEFAULT_ARP_OPERATION     = "0x0001"
	DEFAULT_ARP_SENDER_MAC    = ""
	DEFAULT_ARP_SENDER_IP     = ""
	DEFAULT_ARP_TARGET_MAC    = "0x000000000000"
	DEFAULT_ARP_TARGET_IP     = ""

	DEFAULT_IP_PROTOCOL    = "ICMP"
	DEFAULT_IP_SOURCE      = ""
	DEFAULT_IP_DESTINATION = ""

	DEFAULT_ICMP_TYPE       = "0x08"
	DEFAULT_ICMP_CODE       = "0x00"
	DEFAULT_ICMP_IDENTIFIER = "0x34a1"
	DEFAULT_ICMP_SEQUENCE   = "0x0001"

	DEFAULT_UDP_PORT_SOURCE      = "12345"
	DEFAULT_UDP_PORT_DESTINATION = "53"
	DEFAULT_UDP_LENGTH           = "0x0030"

	DEFAULT_DNS_TRANSACTION    = "0x1234"
	DEFAULT_DNS_FLAGS          = "0x0100"
	DEFAULT_DNS_QUESTIONS      = "0x0001"
	DEFAULT_DNS_ANSWERS_RRs    = "0x0000"
	DEFAULT_DNS_AUTHORITYR_Rs  = "0x0000"
	DEFAULT_DNS_ADDITIONAL_RRs = "0x0000"
	DEFAULT_DNS_QUERIES_DOMAIN = "go.dev"
	DEFAULT_DNS_QUERIES_TYPE   = "0x0001"
	DEFAULT_DNS_QUERIES_CLASS  = "0x0001"

	DEFAULT_TCP_PORT_SOURCE      = "12345"
	DEFAULT_TCP_PORT_DESTINATION = "80"
	DEFAULT_TCP_SEQUENCE         = "0x1f6e9499"
	DEFAULT_TCP_FLAGS            = "0x002"

	DEFAULT_HTTP_METHOD     = "GET"
	DEFAULT_HTTP_URI        = "/"
	DEFAULT_HTTP_VERSION    = "HTTP/1.1"
	DEFAULT_HTTP_HOST       = "github.com"
	DEFAULT_HTTP_USER_AGENT = "packemon"
	DEFAULT_HTTP_ACCEPT     = "*/*"
)

Functions

func NewPacketsHistoryTable

func NewPacketsHistoryTable() *tview.Table

func NewTUI

func NewTUI(wantSend bool) *tui

Types

type ARP

type ARP struct {
	*packemon.ARP
}

type DNS

type DNS struct {
	*packemon.DNS
}

type EthernetFrame

type EthernetFrame struct {
	*packemon.EthernetFrame
}

type HTTP

type HTTP struct {
	*packemon.HTTP
}

type HTTPResponse

type HTTPResponse struct {
	*packemon.HTTPResponse
}

type HistoryRow

type HistoryRow struct {
	// contains filtered or unexported fields
}

type ICMP

type ICMP struct {
	*packemon.ICMP
}

type IPv4

type IPv4 struct {
	*packemon.IPv4
}

type IPv6 added in v0.0.2

type IPv6 struct {
	*packemon.IPv6
}

type TCP

type TCP struct {
	*packemon.TCP
}

type UDP

type UDP struct {
	*packemon.UDP
}

type Viewer

type Viewer interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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