Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#80 sockstat on FreeBSD

closed-accepted
John Horne
Detection (54)
5
2011-11-10
2011-08-10
No

I've got the bug you've mention in ID 3148967, the output from sockstat on dualstack box is:

root httpd 29928 3 tcp4 6 *:80 *:*

The solution you may try (it fixes my bug and the one from ID 3148967):

awk '$5 ~ "(tcp|udp)[46]" { if ($6 == 6) print $7; else print $6 }'

Discussion

  • John Horne
    John Horne
    2011-11-10

    • labels: --> Detection
    • assigned_to: nobody --> jhorne
    • status: open --> closed-accepted
     
  • John Horne
    John Horne
    2011-11-10

    Thanks for that! Although the previous solution worked, I admit yours is tidier ;-)