checking SO_ACCEPTFILTER with netstat(1)/sockstat(1)

Brian A. Seklecki lavalamp at spiritual-machines.org
Fri Jul 20 15:55:01 UTC 2007


Neither appear to support extracting the setsockopt(2) list.  lsof(8) to 
the rescue:

$ sudo lsof -T f | grep -i ACCEPTF | more

httpd 38396 root 3u IPv6 0xc2824378 0t0 TCP *:http 
(SO=ACCEPTCONN,ACCEPTFILTER,KEEPALIVE,PQLEN=0,QLEN=0,QLIM=
                 ^^^^^^^^
128,RCVBUF=262144,REUSEADDR,SNDBUF=262144 
TF=MSS=1024,NODELAY,REQ_SCALE,REQ_TSTMP)

A little bit more definitive than "Oh hey apache stopped complaining."


Any other way?

l8*
 	-lava (Brian A. Seklecki - Pittsburgh, PA, USA)
 	       http://www.spiritual-machines.org/

     "Guilty? Yeah. But he knows it. I mean, you're guilty.
     You just don't know it. So who's really in jail?"
     ~Maynard James Keenan



More information about the freebsd-net mailing list