|
/*
Copyright (c) 1999 Rafal Wojtczuk <nergal@avet.com.pl>. All rights reserved.
See the file COPYING for license details.
*/
#ifndef _NIDS_UTIL_H
#define _NIDS_UTIL_H
#define mknew(x) (x *)test_malloc(sizeof(x))
#define b_comp(x,y) (!memcmp(&(x), &(y), sizeof(x)))
struct proc_node {
void (*item)();
struct proc_node *next;
};
struct lurker_node {
void (*item)();
void *data;
char whatto;
struct lurker_node *next;
};
void nids_no_mem(char *);
char *test_malloc(int);
#ifdef WIN32
int before(u_int seq1, u_int seq2);
int after(u_int seq1, u_int seq2);
#elif
inline int before(u_int seq1, u_int seq2);
inline int after(u_int seq1, u_int seq2);
#endif
#endif /* _NIDS_UTIL_H */
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Saar, has been programing since 1997. He enjoys taking things a part and designing simple solutions to complex problems. Currently, works for Microsoft writing in a variety of languages and flavors. During the last year he is taking a closer look into mobile and web development.