Annotation of embedaddon/trafshow/show_stat.h, revision 1.1
1.1 ! misho 1: /*
! 2: * Copyright (c) 2004 Rinet Corp., Novosibirsk, Russia
! 3: *
! 4: * Redistribution and use in source forms, with and without modification,
! 5: * are permitted provided that this entire comment appears intact.
! 6: *
! 7: * THIS SOURCE CODE IS PROVIDED ``AS IS'' WITHOUT ANY WARRANTIES OF ANY KIND.
! 8: */
! 9:
! 10: #ifndef _SHOW_STAT_H_
! 11: #define _SHOW_STAT_H_
! 12:
! 13: #define SHOW_STAT_ADDR 25 /* size * 2 */
! 14: #define SHOW_STAT_PROT 10
! 15: #define SHOW_STAT_DATA 10
! 16: #define SHOW_STAT_RATE 10
! 17:
! 18: typedef enum { Size, Data, Packets } ShowStatMode;
! 19:
! 20: extern ShowStatMode show_stat_mode;
! 21:
! 22: struct selector;
! 23: struct pcap_handler;
! 24: struct netstat_header;
! 25:
! 26: struct selector *show_stat_list(struct pcap_handler *ph);
! 27: int show_stat_input(struct pcap_handler *ph, int ch);
! 28: struct selector *show_stat_selector(struct pcap_handler *ph);
! 29: struct netstat *show_stat_get(struct pcap_handler *ph, int at);
! 30: int show_stat_search(struct pcap_handler *ph, const char *str);
! 31:
! 32: void hdr2str(const struct netstat_header *nh,
! 33: char *src_buf, int src_len,
! 34: char *dst_buf, int dst_len,
! 35: char *proto_buf, int proto_len);
! 36:
! 37: #endif /* !_SHOW_STAT_H_ */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>