/*	@(#)net_stat.h	13.1 (RC International) 91/02/02	*/

/*
 *  Network statistics structures, to be stored in txinfo
 */
struct net_stat
{
    struct domain	**domains;	/* currently active domains */

    struct ipstat	*ipstat;	/* IP protocol stats */
    struct inpcb	*tcb;		/* IP protocol control block */
    struct tcpstat	*tcpstat;	/* TCP protocol stats */
    struct inpcb	*udb;		/* TCP protocol control block */
    struct udpstat	*udpstat;	/* UDP protocol stats */
    struct icmpstat	*icmpstat;	/* ICMP protocol stats */

    struct nspcb	*nspcb;		/* XNS IDP protocol control block */
    struct idpstat	*idpstat;	/* XNS IDP protocol stats */
    struct ns_errstat	*ns_errstat;	/* XNS Error protocol stats */
    struct spp_istat	*spp_istat;	/* XNS SPP protocol stats */

    struct arptab	*arptab;	/* ARP protocol table */
    struct rawcb	*rawcb;		/* raw protocol control block */

    struct in_ifaddr	**in_ifaddr;	/* list of IP addr/interface pairs */
    struct ns_ifaddr	**ns_ifaddr;	/* list of XNS addr/interface pairs */

    struct mbuf		**rthost;	/* routes to hosts */
    struct mbuf		**rtnet;	/* routes to nets */
    struct rtstat	*rtstat;	/* routing table stats */

    struct ifqueue	*ipintrq;	/* IP packet input queue */
    struct ifqueue	*nsintrq;	/* XNS input packet queue */
    struct ifqueue	*rawintrq;	/* raw packet input queue */

    struct tcp_debug	*tcp_debug;	/* TCP debugging info */
    int			*tcp_debx;	/* current index into debug array */
    struct spp_debug	*spp_debug;	/* XNS SPP debugging info */
    int			*spp_debx;	/* current index into debug array */
};
