* You may use, modify and redistribute this file under the terms of the
* GNU General Public License version 2. (see COPYING.GPL)
*/
+#ifndef __DARKSTAT_DECODE_H
+#define __DARKSTAT_DECODE_H
#include <pcap.h>
#include <netinet/in_systm.h> /* n_time */
dst_mac[ETHER_ADDR_LEN]; /* only for Ethernet */
} pktsummary;
+#endif /* __DARKSTAT_DECODE_H */
/* vim:set ts=3 sw=3 tw=78 expandtab: */
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "darkstat.h"
+
void err(const int code, const char *format, ...) _noreturn_;
void errx(const int code, const char *format, ...) _noreturn_;
*
* graph_db.h: round robin database for graph data
*/
+#ifndef __DARKSTAT_GRAPH_DB_H
+#define __DARKSTAT_GRAPH_DB_H
#include <stdint.h> /* for uint64_t on Linux and OS X */
struct str *html_front_page(void);
struct str *xml_graphs(void);
+#endif
/* vim:set ts=3 sw=3 tw=78 expandtab: */
* You may use, modify and redistribute this file under the terms of the
* GNU General Public License version 2. (see COPYING.GPL)
*/
-
-#ifndef __HOSTS_DB_H
-# define __HOSTS_DB_H 1
+#ifndef __DARKSTAT_HOSTS_DB_H
+#define __DARKSTAT_HOSTS_DB_H
#include <sys/types.h>
#include <sys/socket.h>
void qsort_buckets(const struct bucket **a, size_t n,
size_t left, size_t right, const enum sort_dir d);
-#endif /* !__HOSTS_DB_H */
+#endif /* __DARKSTAT_HOSTS_DB_H */
/* vim:set ts=3 sw=3 tw=78 expandtab: */
* You may use, modify and redistribute this file under the terms of the
* GNU General Public License version 2. (see COPYING.GPL)
*/
+#ifndef __DARKSTAT_HTML_H
+#define __DARKSTAT_HTML_H
+
+#include "config.h" /* for PACKAGE_STRING */
static const char html_header_1[] =
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n"
"</body>\n"
"</html>\n";
+#endif
/* vim:set ts=3 sw=3 tw=78 expandtab: */