From owner-freebsd-bugs Sun May 12 1:30: 9 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8D61C37B401 for ; Sun, 12 May 2002 01:30:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4C8U3441866; Sun, 12 May 2002 01:30:03 -0700 (PDT) (envelope-from gnats) Date: Sun, 12 May 2002 01:30:03 -0700 (PDT) Message-Id: <200205120830.g4C8U3441866@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Crist J. Clark" Subject: Re: bin/37602: netstat -i -b does not count outgoing packets for ip aliases Reply-To: "Crist J. Clark" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/37602; it has been noted by GNATS. From: "Crist J. Clark" To: james brown 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