home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / network / src_1218.zip / TRACE.H < prev    next >
C/C++ Source or Header  |  1991-09-18  |  3KB  |  83 lines

  1. #ifndef    _TRACE_H
  2. #define    _TRACE_H
  3.  
  4. #ifndef    _MBUF_H
  5. #include "mbuf.h"
  6. #endif
  7.  
  8. #ifndef    _IFACE_H
  9. #include "iface.h"
  10. #endif
  11.  
  12. /* Definitions for packet dumping */
  13.  
  14. /* Table of trace subcommands */
  15. struct tracecmd {
  16.     char *name;    /* Name of trace subcommand */
  17.     int val;    /* New setting for these bits */
  18.     int mask;    /* Mask of bits affected in trace word */
  19. };
  20. extern struct tracecmd Tracecmd[];    /* Defined in trace.c */
  21.  
  22. /* List of address testing and tracing functions for each interface.
  23.  * Entries are placed in this table by conditional compilation in main.c.
  24.  */
  25. struct trace {
  26.     int (*addrtest) __ARGS((struct iface *iface,struct mbuf *bp));
  27.     void (*tracef) __ARGS((FILE *,struct mbuf **,int));
  28. };
  29.  
  30. extern struct trace Tracef[];
  31.  
  32. /* In trace.c: */
  33. void dump __ARGS((struct iface *ifp,int direction,unsigned type,struct mbuf *bp));
  34. void raw_dump __ARGS((struct iface *ifp,int direction, struct mbuf *bp));
  35. void trace_log __ARGS((struct iface *ifp,char *fmt, ...));
  36. void shuttrace __ARGS ((void));
  37.  
  38. /* In arcdump.c: */
  39. void arc_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  40. int arc_forus __ARGS((struct iface *iface,struct mbuf *bp));
  41.  
  42. /* In arpdump.c: */
  43. void arp_dump __ARGS((FILE *fp,struct mbuf **bpp));
  44.  
  45. /* In ax25dump.c: */
  46. void ax25_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  47. int ax_forus __ARGS((struct iface *iface,struct mbuf *bp));
  48.  
  49. /* In enetdump.c: */
  50. void ether_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  51. int ether_forus __ARGS((struct iface *iface,struct mbuf *bp));
  52.  
  53. /* In icmpdump.c: */
  54. void icmp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  55.  
  56. /* In ipdump.c: */
  57. void ip_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  58.  
  59. /* In kissdump.c: */
  60. void ki_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  61. int ki_forus __ARGS((struct iface *iface,struct mbuf *bp));
  62.  
  63. /* In nrdump.c: */
  64. void netrom_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  65.  
  66. /* In pppdump.c: */
  67. void ppp_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  68.  
  69. /* In ripdump.c: */
  70. void rip_dump __ARGS((FILE *fp,struct mbuf **bpp));
  71.  
  72. /* In slcompdump.c: */
  73. void sl_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  74. void vjcomp_dump __ARGS((FILE *fp,struct mbuf **bpp,int unused));
  75.  
  76. /* In tcpdump.c: */
  77. void tcp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  78.  
  79. /* In udpdump.c: */
  80. void udp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  81.  
  82. #endif    /* _TRACE_H */
  83.