Date: Sun, 12 May 2002 01:30:03 -0700 (PDT) From: "Crist J. Clark" <cjc@FreeBSD.ORG> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/37602: netstat -i -b does not count outgoing packets for ip aliases Message-ID: <200205120830.g4C8U3441866@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/37602; it has been noted by GNATS.
From: "Crist J. Clark" <cjc@FreeBSD.ORG>
To: james brown <jbsd@syndicate.net>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/37602: netstat -i -b does not count outgoing packets for ip aliases
Date: Sun, 12 May 2002 01:26:49 -0700
On Tue, Apr 30, 2002 at 10:43:29AM -0700, james brown wrote:
[snip]
> netstat -i -b does not count outgoing packets on ip aliases. ipfw counts packets on ip aliases just fine.
It doesn't make a lot of sense to track outgoing packets by source IP
address on an interface. The destination IP address determines which
interface a packet leaves. If you have two interfaces, if0 and if1,
and you are sending a packet with source IP address, ip0, an address
associated with if0, the destination IP determines which interface the
packet leaves. You can have packets with source address of ip0 leaving
interface if1.
If you are playing with ipfw(8) accounting, you can see this by adding
rules like,
# ipfw count ip from ip0 to any out via if0
# ipfw count ip from ip0 to any out via if1
# ipfw count ip from ip0 to any out
--
Crist J. Clark | cjclark@alum.mit.edu
| cjclark@jhu.edu
http://people.freebsd.org/~cjc/ | cjc@freebsd.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205120830.g4C8U3441866>
