eBPF : tcpstates do not list local port information in RHEL8

Solution In Progress - Updated -

Issue

  • eBPF : tcpstates do not list local port information.
# ./tcpstates
    SKADDR           C-PID C-COMM     LADDR           LPORT RADDR  RPORT OLDSTAT   -> NEWSTATE    MS
    ffff8e951213c200 4044  nc         10.0.0.1 0     10.0.0.2 1234  CLOSE          -> SYN_SENT    0.000
    ffff8e951213c200 4043  tcpstates  10.0.0.1 0     10.0.0.2 1234  SYN_SENT       -> ESTABLISHED 0.290
    ffff8e951213c200 4044  nc         10.0.0.1 0     10.0.0.2 1234  ESTABLISHED    -> FIN_WAIT1   778.173
    ffff8e951213c200 3234  bash       10.0.0.1 0     10.0.0.2 1234  FIN_WAIT1      -> FIN_WAIT2   1.891
    ffff8e951213c200 3234  bash       10.0.0.1 0     10.0.0.2 1234  FIN_WAIT2      -> CLOSE       0.067

Environment

  • Red Hat Enterprise Linux (RHEL) 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content