kern/42467: netstat -s does not include fabricated pkts in "packets sent from host"

Bruce M Simpson bms at FreeBSD.org
Mon Jun 14 15:34:01 GMT 2004


Synopsis: netstat -s does not include fabricated pkts in "packets sent from host"

State-Changed-From-To: open->analyzed
State-Changed-By: bms
State-Changed-When: Mon Jun 14 15:30:35 GMT 2004
State-Changed-Why: 
This looks like a problem of definitions...

ipstat.ips_localout is the global member concerned.

It doesn't get incremented if the IP_RAWOUTPUT flag is set
when ip_output() is called, and it doesn't get incremented
if we act as a router and forwarded the packet (IP_FORWARDING).

ipstat.ips_rawout is however incremented from within the
raw IP socket code, specifically rip_output().

I have a feeling this is the stuff of bikesheds beyond our
wildest nightmares, so I'm not touching it just now.


Responsible-Changed-From-To: freebsd-bugs->bms
Responsible-Changed-By: bms
Responsible-Changed-When: Mon Jun 14 15:30:35 GMT 2004
Responsible-Changed-Why: 
I'll take this.

http://www.freebsd.org/cgi/query-pr.cgi?pr=42467


More information about the freebsd-bugs mailing list