diff options
author | Josef Karthauser <joe@FreeBSD.org> | 2000-10-19 23:15:54 +0000 |
---|---|---|
committer | Josef Karthauser <joe@FreeBSD.org> | 2000-10-19 23:15:54 +0000 |
commit | 5da9f8fa978ae925af826ba78653757d2c84c9c1 (patch) | |
tree | 9f0fe3f2362be5fa75a25ca05077a78bfe2418f0 /sys/net/if_var.h | |
parent | 7ae6b1ebd284680b965c4ce38b7d3923cd7196fe (diff) | |
download | src-5da9f8fa978ae925af826ba78653757d2c84c9c1.tar.gz src-5da9f8fa978ae925af826ba78653757d2c84c9c1.zip |
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.
Notes
Notes:
svn path=/head/; revision=67334
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r-- | sys/net/if_var.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h index d16fc00c4313..2455d691d210 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 */ |