Skip to content

cilium bpf ct list global -o json prints map details, not ct entries #2976

@joestringer

Description

@joestringer
$ sudo cilium bpf ct list global | head -n 5 
TCP IN [f00d::a0f:0:0:4870]:80 -> [f00d::a0f:0:0:4264]:34274  expires=71101 rx_packets=6 rx_bytes=615 tx_packets=4 tx_bytes=581 flags=0 revnat=0 proxyport=0 src_sec_id=42212
TCP OUT [f00d::a0f:0:0:ad]:80 -> [f00d::a0f:0:0:dc06]:34770  expires=70766 rx_packets=0 rx_bytes=0 tx_packets=3 tx_bytes=282 flags=0 revnat=0 proxyport=0 src_sec_id=42212
ICMPv6 OUT [f00d::a0f:0:0:4870]:32768 -> [f00d::a0f:0:0:1150]:0  expires=71092 rx_packets=10 rx_bytes=1180 tx_packets=10 tx_bytes=1180 flags=0 revnat=0 proxyport=0 src_sec_id=41924
TCP OUT [f00d::a0f:0:0:ecfe]:80 -> [f00d::a0f:0:0:f8a]:48700  expires=70964 rx_packets=4 rx_bytes=581 tx_packets=6 tx_bytes=615 flags=0 revnat=0 proxyport=0 src_sec_id=41924
TCP OUT [f00d::a0f:0:0:ecfe]:80 -> [f00d::a0f:0:0:10da]:57812  expires=70921 rx_packets=0 rx_bytes=0 tx_packets=3 tx_bytes=282 flags=0 revnat=0 proxyport=0 src_sec_id=42212
$ sudo cilium bpf ct list global -o json       
{
  "MapType": 1,
  "KeySize": 40,
  "ValueSize": 48,
  "MaxEntries": 1000000,
  "Flags": 0,
  "OwnerProgType": 0,
  "NonPersistent": false
}
{
  "MapType": 1,
  "KeySize": 14,
  "ValueSize": 48,
  "MaxEntries": 1000000,
  "Flags": 0,
  "OwnerProgType": 0,
  "NonPersistent": false
}

This command is intended to print the contents of the map, not the details of the IPv4/IPv6 map structures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cliImpacts the command line interface of any command in the repository.kind/bugThis is a bug in the Cilium logic.staleThe stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions