From c6d8349444659c4a281b31a709377e8c71a90ad9 Mon Sep 17 00:00:00 2001 From: joe Date: Thu, 19 Oct 2000 23:15:54 +0000 Subject: Augment the 'ifaddr' structure with a 'struct if_data' to keep statistics on a per network address basis. Teach the IPv4 and IPv6 input/output routines to log packets/bytes against the network address connected to the flow. Teach netstat to display the per-address stats for IP protocols when 'netstat -i' is evoked, instead of displaying the per-interface stats. --- sys/net/if_var.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/net') diff --git a/sys/net/if_var.h b/sys/net/if_var.h index d16fc00..2455d69 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -259,6 +259,7 @@ struct ifaddr { struct sockaddr *ifa_dstaddr; /* other end of p-to-p link */ #define ifa_broadaddr ifa_dstaddr /* broadcast address interface */ struct sockaddr *ifa_netmask; /* used to determine subnet */ + struct if_data if_data; /* not all members are meaningful */ struct ifnet *ifa_ifp; /* back-pointer to interface */ TAILQ_ENTRY(ifaddr) ifa_link; /* queue macro glue */ void (*ifa_rtrequest) /* check or clean routes (+ or -)'d */ -- cgit v1.1