offsetguess

package
v0.0.0-...-22022a5 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const ProcCommMaxLen = 0x10 - 1

Variables

This section is empty.

Functions

This section is empty.

Types

type ConntrackState

type ConntrackState uint8

type ConntrackStatus

type ConntrackStatus struct {
	State         uint64
	What          uint64
	Proc          Proc
	Offset_origin uint64
	Offset_reply  uint64
	Offset_status uint64
	Offset_netns  uint64
	Offset_ino    uint64
	Err           uint64
	Saddr         uint32
	Netns         uint32
}

type GuessWhat

type GuessWhat uint64
const (
	GuessSAddr     GuessWhat = 0x0
	GuessDAddr     GuessWhat = 0x1
	GuessFamily    GuessWhat = 0x2
	GuessSPort     GuessWhat = 0x3
	GuessDPort     GuessWhat = 0x4
	GuessNetNS     GuessWhat = 0x5
	GuessRTT       GuessWhat = 0x6
	GuessRTTVar    GuessWhat = 0x18
	GuessDAddrIPv6 GuessWhat = 0x7

	GuessSAddrFl4 GuessWhat = 0x8
	GuessDAddrFl4 GuessWhat = 0x9
	GuessSPortFl4 GuessWhat = 0xa
	GuessDPortFl4 GuessWhat = 0xb

	GuessSAddrFl6   GuessWhat = 0xc
	GuessDAddrFl6   GuessWhat = 0xd
	GuessSPortFl6   GuessWhat = 0xe
	GuessDPortFl6   GuessWhat = 0xf
	GuessSocketSK   GuessWhat = 0x10
	GuessSKBuffSock GuessWhat = 0x11

	GuessSKBuffTransportHeader GuessWhat = 0x12
	GuessSKBuffHead            GuessWhat = 0x13

	GuessCtTupleOrigin GuessWhat = 0x14
	GuessCtTupleReply  GuessWhat = 0x15
	GuessCtNet         GuessWhat = 0x17

	GuessNotApplicable GuessWhat = 99999
)

type Proc

type Proc struct {
	Comm [16]int8
}

type State

type State uint8
const (
	StateUninitialized State = 0x0
	StateChecking      State = 0x1
	StateChecked       State = 0x2
	StateReady         State = 0x3
)

type TracerStatus

type TracerStatus struct {
	State                           uint64
	Tcp_info_kprobe_status          uint64
	Proc                            Proc
	What                            uint64
	Offset_saddr                    uint64
	Offset_daddr                    uint64
	Offset_sport                    uint64
	Offset_dport                    uint64
	Offset_netns                    uint64
	Offset_ino                      uint64
	Offset_family                   uint64
	Offset_rtt                      uint64
	Offset_rtt_var                  uint64
	Offset_daddr_ipv6               uint64
	Offset_saddr_fl4                uint64
	Offset_daddr_fl4                uint64
	Offset_sport_fl4                uint64
	Offset_dport_fl4                uint64
	Offset_saddr_fl6                uint64
	Offset_daddr_fl6                uint64
	Offset_sport_fl6                uint64
	Offset_dport_fl6                uint64
	Offset_socket_sk                uint64
	Offset_sk_buff_sock             uint64
	Offset_sk_buff_transport_header uint64
	Offset_sk_buff_head             uint64
	Err                             uint64
	Daddr_ipv6                      [4]uint32
	Netns                           uint32
	Rtt                             uint32
	Rtt_var                         uint32
	Saddr                           uint32
	Daddr                           uint32
	Sport                           uint16
	Dport                           uint16
	Sport_via_sk                    uint16
	Dport_via_sk                    uint16
	Sport_via_sk_via_sk_buf         uint16
	Dport_via_sk_via_sk_buf         uint16
	Family                          uint16
	Saddr_fl4                       uint32
	Daddr_fl4                       uint32
	Sport_fl4                       uint16
	Dport_fl4                       uint16
	Saddr_fl6                       [4]uint32
	Daddr_fl6                       [4]uint32
	Sport_fl6                       uint16
	Dport_fl6                       uint16
	Transport_header                uint16
	Network_header                  uint16
	Mac_header                      uint16
	Fl4_offsets                     uint8
	Fl6_offsets                     uint8
	Seen_failure                    uint8
	Pad_cgo_0                       [3]byte
}

Jump to

Keyboard shortcuts

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