Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Trace ¶
type Trace struct {
// trace id
ID uint32 `json:"id"`
// protocols family (ip4/ip6/inet)
Family string `json:"family"`
// table name
Table string `json:"table"`
// chain name
Chain string `json:"chain"`
// rule expression
Rule string `json:"rule"`
// rule handle
Handle uint64 `json:"handle"`
// target chain name for jumping
Jump string `json:"jump,omitempty"`
// rule verdict
Verdict string `json:"verdict"`
// input interface name
IIF string `json:"iif,omitempty"`
// output interface name
OIF string `json:"oif,omitempty"`
// packet length
Len uint32 `json:"len"`
// source mac address
SMAC string `json:"smac,omitempty"`
// destination mac address
DMAC string `json:"dmac,omitempty"`
// ip protocol version (4/6)
IpVersion uint8 `json:"ip_version,omitempty"`
// protocol (tcp/udp/icmp/...)
Proto string `json:"proto"`
// source ip address
SAddr string `json:"saddr,omitempty"`
// destination ip address
DAddr string `json:"daddr,omitempty"`
// source port
SPort uint32 `json:"sport,omitempty"`
// destination port
DPort uint32 `json:"dport,omitempty"`
// aggregated trace counter
Cnt uint64 `json:"cnt"`
}
func (*Trace) FiveTupleFormat ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
link-watcher
command
|
|
|
nft-watcher
command
|
|
|
rule-watcher
command
|
|
|
trace-monitor
command
|
|
|
internal
|
|
|
pkg
|
|
Click to show internal directories.
Click to hide internal directories.