"Fossies" - the Fresh Open Source Software Archive

Member "arpwatch-NG1.7/report.h" (5 Nov 2006, 911 Bytes) of archive /linux/misc/old/arpwatch-NG1.7.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "report.h": 2.1a15_vs_1.7.

    1 #ifndef REPORT_H
    2 #define REPORT_H
    3 
    4 enum {
    5     REPORT_NORMAL=0,
    6     REPORT_STDOUT,
    7     REPORT_RAW,
    8 };
    9 
   10 enum {
   11         ACTION_ACTIVITY=0,
   12         ACTION_NEW,
   13         ACTION_REUSED,
   14         ACTION_CHANGED,
   15         ACTION_FLIPFLOP,
   16         ACTION_BOGON,
   17         ACTION_ETHER_BROADCAST,
   18         ACTION_ETHER_MISMATCH,
   19         ACTION_ETHER_TOOSHORT,
   20         ACTION_ETHER_BADFORMAT,
   21         ACTION_ETHER_WRONGTYPE_IP,
   22         ACTION_ETHER_BADLENGTH,
   23         ACTION_ETHER_WRONGOP,
   24     ACTION_ETHER_WRONGRARP,
   25     ACTION_ETHER_WRONGTYPE,
   26 };
   27 
   28 
   29 /* struct describing a report function */
   30 struct report_mode {
   31     void (*func)(int , u_int32_t, u_char *, u_char *, time_t *, time_t *);
   32     const char *name;
   33         unsigned int flags;
   34 };
   35 
   36 
   37 #define ACTION_MAX ACTION_ETHER_WRONGTYPE
   38 
   39 void report(int, u_int32_t, u_char *, u_char *, time_t *, time_t *);
   40 int setup_reportmode(int mode);
   41 int get_reportmodes(const struct report_mode **out);
   42 
   43 #endif