Documentation
¶
Index ¶
- Constants
- type Batch
- type BindSyscallArgs
- type Conn
- type ConnDirection
- type ConnFamily
- type ConnFlags
- type ConnStats
- type ConnTuple
- type ConnType
- type ConntrackTelemetry
- type ConntrackTuple
- func (t ConntrackTuple) DestAddress() util.Address
- func (t ConntrackTuple) DestEndpoint() string
- func (t ConntrackTuple) Family() ConnFamily
- func (t ConntrackTuple) SourceAddress() util.Address
- func (t ConntrackTuple) SourceEndpoint() string
- func (t ConntrackTuple) String() string
- func (t ConntrackTuple) Type() ConnType
- type GuessWhat
- type HTTPBatchState
- type HTTPConnTuple
- type PIDFD
- type PortBinding
- type PortState
- type Proc
- type SSLReadArgs
- type SSLSock
- type TCPState
- type TCPStats
- type Telemetry
- type TracerState
- type TracerStatus
- type UDPRecvSock
Constants ¶
const BatchSize = 0x4
const ProcCommMaxLen = 0x10 - 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindSyscallArgs ¶
type BindSyscallArgs struct {
Port uint16
}
type ConnDirection ¶
type ConnDirection uint8
const ( Unknown ConnDirection = 0x0 Incoming ConnDirection = 0x1 Outgoing ConnDirection = 0x2 )
type ConnFamily ¶
type ConnFamily uint32
const ( IPv4 ConnFamily = 0x0 IPv6 ConnFamily = 0x2 )
func (ConnFamily) String ¶
func (c ConnFamily) String() string
type ConnStats ¶
type ConnStats struct { Sent_bytes uint64 Recv_bytes uint64 Timestamp uint64 Flags uint32 Direction uint8 Sent_packets uint64 Recv_packets uint64 }
func (ConnStats) ConnectionDirection ¶
func (cs ConnStats) ConnectionDirection() ConnDirection
ConnectionDirection returns the direction of the connection (incoming vs outgoing).
type ConnTuple ¶
type ConnTuple struct { Saddr_h uint64 Saddr_l uint64 Daddr_h uint64 Daddr_l uint64 Sport uint16 Dport uint16 Netns uint32 Pid uint32 Metadata uint32 }
func (ConnTuple) DestAddress ¶
DestAddress returns the destination address
func (ConnTuple) DestEndpoint ¶
DestEndpoint returns the destination address and source port joined
func (ConnTuple) Family ¶
func (t ConnTuple) Family() ConnFamily
Family returns whether a tuple is IPv4 or IPv6
func (ConnTuple) SourceAddress ¶
SourceAddress returns the source address
func (ConnTuple) SourceEndpoint ¶
SourceEndpoint returns the source address and source port joined
type ConntrackTelemetry ¶
type ConntrackTuple ¶
type ConntrackTuple struct { Saddr_h uint64 Saddr_l uint64 Daddr_h uint64 Daddr_l uint64 Sport uint16 Dport uint16 Netns uint32 Metadata uint32 X_pad uint32 }
func (ConntrackTuple) DestAddress ¶
func (t ConntrackTuple) DestAddress() util.Address
DestAddress returns the destination address
func (ConntrackTuple) DestEndpoint ¶
func (t ConntrackTuple) DestEndpoint() string
DestEndpoint returns the destination address and source port joined
func (ConntrackTuple) Family ¶
func (t ConntrackTuple) Family() ConnFamily
Family returns whether a tuple is IPv4 or IPv6
func (ConntrackTuple) SourceAddress ¶
func (t ConntrackTuple) SourceAddress() util.Address
SourceAddress returns the source address
func (ConntrackTuple) SourceEndpoint ¶
func (t ConntrackTuple) SourceEndpoint() string
SourceEndpoint returns the source address and source port joined
func (ConntrackTuple) String ¶
func (t ConntrackTuple) String() string
func (ConntrackTuple) Type ¶
func (t ConntrackTuple) Type() ConnType
Type returns whether a tuple is TCP or UDP
type GuessWhat ¶
type GuessWhat uint64
const ( GuessSAddr GuessWhat = 0.000000 GuessDAddr GuessWhat = 1.000000 GuessFamily GuessWhat = 2.000000 GuessSPort GuessWhat = 3.000000 GuessDPort GuessWhat = 4.000000 GuessNetNS GuessWhat = 5.000000 GuessRTT GuessWhat = 6.000000 GuessDAddrIPv6 GuessWhat = 7.000000 GuessSAddrFl4 GuessWhat = 8.000000 GuessDAddrFl4 GuessWhat = 9.000000 GuessSPortFl4 GuessWhat = 10.000000 GuessDPortFl4 GuessWhat = 11.000000 GuessSAddrFl6 GuessWhat = 12.000000 GuessDAddrFl6 GuessWhat = 13.000000 GuessSPortFl6 GuessWhat = 14.000000 GuessDPortFl6 GuessWhat = 15.000000 GuessSocketSK GuessWhat = 16.000000 GuessNotApplicable GuessWhat = 99999 )
type HTTPBatchState ¶
type HTTPConnTuple ¶
type PortBinding ¶
type SSLReadArgs ¶
type SSLSock ¶
type SSLSock struct { Tup HTTPConnTuple Fd uint32 Pad_cgo_0 [4]byte }
type TracerState ¶
type TracerState uint8
const ( StateUninitialized TracerState = 0.000000 StateChecking TracerState = 1.000000 StateChecked TracerState = 2.000000 StateReady TracerState = 3.000000 )
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 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 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 Ipv6_enabled uint8 Fl4_offsets uint8 Fl6_offsets uint8 Pad_cgo_0 [5]byte }
type UDPRecvSock ¶
type UDPRecvSock struct { Sk *_Ctype_struct_sock Msg *_Ctype_struct_msghdr }