home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / hamradio / s920603.zip / TRACE.H < prev    next >
C/C++ Source or Header  |  1992-05-04  |  3KB  |  84 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,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. int tprintf __ARGS((struct iface *ifp,char *fmt,...));
  38.  
  39. /* In arcdump.c: */
  40. void arc_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  41. int arc_forus __ARGS((struct iface *iface,struct mbuf *bp));
  42.  
  43. /* In arpdump.c: */
  44. void arp_dump __ARGS((FILE *fp,struct mbuf **bpp));
  45.  
  46. /* In ax25dump.c: */
  47. void ax25_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  48. int ax_forus __ARGS((struct iface *iface,struct mbuf *bp));
  49.  
  50. /* In enetdump.c: */
  51. void ether_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  52. int ether_forus __ARGS((struct iface *iface,struct mbuf *bp));
  53.  
  54. /* In icmpdump.c: */
  55. void icmp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  56.  
  57. /* In ipdump.c: */
  58. void ip_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  59.  
  60. /* In kissdump.c: */
  61. void ki_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  62. int ki_forus __ARGS((struct iface *iface,struct mbuf *bp));
  63.  
  64. /* In nrdump.c: */
  65. void netrom_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  66.  
  67. /* In pppdump.c: */
  68. void ppp_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  69.  
  70. /* In ripdump.c: */
  71. void rip_dump __ARGS((FILE *fp,struct mbuf **bpp));
  72.  
  73. /* In slcompdump.c: */
  74. void sl_dump __ARGS((FILE *fp,struct mbuf **bpp,int check));
  75. void vjcomp_dump __ARGS((FILE *fp,struct mbuf **bpp,int unused));
  76.  
  77. /* In tcpdump.c: */
  78. void tcp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  79.  
  80. /* In udpdump.c: */
  81. void udp_dump __ARGS((FILE *fp,struct mbuf **bpp,int32 source,int32 dest,int check));
  82.  
  83. #endif    /* _TRACE_H */
  84.