"Fossies" - the Fresh Open Source Software Archive

Member "pktstat-1.8.5/tag.h" (11 Nov 2006, 1720 Bytes) of package /linux/privat/old/pktstat-1.8.5.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.

    1 /* David Leonard, 2002. Public domain. */
    2 /* $Id: tag.h 1172 2006-11-11 13:32:14Z d $ */
    3 
    4 /*
    5  * Tag functions return a string tag depending on the packet payload.
    6  * The string represents a display category.
    7  * The design philosophy here is that the tags should be short enough
    8  * and descriptive enough not to overwhelm an operator on a relatively
    9  * quiet business network, with the presumption that if the operator
   10  * is interested enough, they can always run tcpdump to look closer.
   11  */
   12 
   13 extern int combine;
   14 
   15 #if _AIX
   16 #define ip6_hdr ipv6    /* AIX uses RFC 1883 instead of RFC2460 */
   17 #define ip6_nxt ip6_nh
   18 #endif
   19 
   20 struct ip;
   21 struct in_addr;
   22 struct in6_addr;
   23 struct ip6_hdr;
   24 
   25 const char *ppp_tag(const char *, const char *);
   26 const char *ether_tag(const char *, const char *);
   27 const char *loop_tag(const char *, const char *);
   28 const char *sll_tag(const char *, const char *);
   29 
   30 const char *ip_tag(const char *, const char *);
   31 const char *ip6_tag(const char *, const char *);
   32 
   33 const char *ip_lookup(const struct in_addr *);
   34 const char *ip6_lookup(const struct in6_addr *);
   35 
   36 const char *tcp_tag(const char *, const char *, const struct ip *, const struct ip6_hdr *);
   37 const char *udp_tag(const char *, const char *, const struct ip *, const struct ip6_hdr *);
   38 const char *icmp_tag(const char *, const char *, const struct ip *);
   39 
   40 const char *ipx_tag(const char *, const char *);
   41 
   42 const char *tag_combine(const char *, const char *);
   43 
   44 const char *ether_wol(const char *, const char *, const char *);
   45 
   46 /* Ethernet-like tagging helper */
   47 const char *ether_tagx(unsigned int type, const char *p, const char *end);
   48 
   49 /* Flush hostname and port lookup caches */
   50 void ip_reset(void);
   51 void tcp_reset(void);
   52 void udp_reset(void);