diff options
-rw-r--r-- | bpf.h | 6 | ||||
-rw-r--r-- | built_in.h | 9 | ||||
-rw-r--r-- | colorize.h | 8 | ||||
-rw-r--r-- | colors.h | 5 | ||||
-rw-r--r-- | csum.h | 6 | ||||
-rw-r--r-- | ct_servmgmt.h | 6 | ||||
-rw-r--r-- | ct_usermgmt.h | 6 | ||||
-rw-r--r-- | curvetun.h | 6 | ||||
-rw-r--r-- | geoip.h | 6 | ||||
-rw-r--r-- | hash.h | 8 | ||||
-rw-r--r-- | ipv4.h | 7 | ||||
-rw-r--r-- | ipv6.h | 7 | ||||
-rw-r--r-- | locking.h | 6 | ||||
-rw-r--r-- | mac80211.h | 6 | ||||
-rw-r--r-- | oui.h | 6 | ||||
-rw-r--r-- | protos.h | 6 | ||||
-rw-r--r-- | tprintf.h | 11 | ||||
-rw-r--r-- | trafgen_conf.h | 6 | ||||
-rw-r--r-- | xmalloc.h | 6 |
19 files changed, 12 insertions, 115 deletions
@@ -1,9 +1,3 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright 2009, 2010 Daniel Borkmann. - * Subject to the GPL, version 2. - */ - #ifndef BPF_I_H #define BPF_I_H @@ -1,13 +1,8 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright 2009-2012 Daniel Borkmann. - * Parts taken from the Linux kernel, GPL, version 2. - * Subject to the GPL, version 2. - */ - #ifndef BUILT_IN_H #define BUILT_IN_H +/* Parts taken from the Linux kernel, GPL, version 2. */ + #include <linux/if_packet.h> #include <assert.h> #include <endian.h> diff --git a/colorize.h b/colorize.h new file mode 100644 index 0000000..928deb2 --- /dev/null +++ b/colorize.h @@ -0,0 +1,8 @@ +#ifndef COLORIZE_H +#define COLORIZE_H + +#define colorize_start(fore) "\033[" __##fore "m" +#define colorize_start_full(fore, back) "\033[" __##fore ";" __on_##back "m" +#define colorize_end() "\033[" __reset "m" + +#endif /* COLORIZE_H */ @@ -1,8 +1,3 @@ -/* netsniff-ng - the packet sniffing beast - * Copyright 2009, 2010 Daniel Borkmann. - * Subject to the GPL, version 2. - */ - #ifndef COLORS_H #define COLORS_H @@ -1,9 +1,3 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright 2010 Emmanuel Roullit. - * Subject to the GPL, version 2. - */ - #ifndef CSUM_H #define CSUM_H diff --git a/ct_servmgmt.h b/ct_servmgmt.h index 228a08a..9c5cd84 100644 --- a/ct_servmgmt.h +++ b/ct_servmgmt.h @@ -1,9 +1,3 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright 2011 Daniel Borkmann. - * Subject to the GPL, version 2. - */ - #ifndef CT_SERVMGMT_H #define CT_SERVMGMT_H diff --git a/ct_usermgmt.h b/ct_usermgmt.h index d7caae0..ff9d601 100644 --- a/ct_usermgmt.h +++ b/ct_usermgmt.h @@ -1,9 +1,3 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright 2011 Daniel Borkmann. - * Subject to the GPL, version 2. - */ - #ifndef CT_USERMGMT_H #define CT_USERMGMT_H @@ -1,9 +1,3 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright 2011 Daniel Borkmann. - * Subject to the GPL, version 2. - */ - #ifndef CURVETUN_H #define CURVETUN_H @@ -1,9 +1,3 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright 2013 Daniel Borkmann. - * Subject to the GPL, version 2. - */ - #ifndef GEOIPH_H #define GEOIPH_H @@ -1,9 +1,3 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright 2009, 2010 Daniel Borkmann. - * Subject to the GPL, version 2. - */ - #ifndef HASH_H #define HASH_H @@ -83,4 +77,4 @@ static inline unsigned int hash_name(const char *name, int namelen) return hash; } -#endif +#endif /* HASH_H */ @@ -1,10 +1,3 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright (C) 2009, 2010 Daniel Borkmann - * Copyright (C) 2012 Christoph Jaeger <christoph@netsniff-ng.org> - * Subject to the GPL, version 2. - */ - #ifndef IPV4_H #define IPV4_H @@ -1,10 +1,3 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright (C) 2009, 2010 Daniel Borkmann - * Copyright (C) 2012 Christoph Jaeger <christoph@netsniff-ng.org> - * Subject to the GPL, version 2. - */ - #ifndef IPV6_H #define IPV6_H @@ -1,9 +1,3 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright 2011 Daniel Borkmann. - * Subject to the GPL, version 2. - */ - #ifndef LOCKING_H #define LOCKING_H @@ -1,9 +1,3 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright 2012 Daniel Borkmann. - * Subject to the GPL, version 2. - */ - #ifndef MAC80211_H #define MAC80211_H @@ -1,9 +1,3 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright 2012 Daniel Borkmann. - * Subject to the GPL, version 2. - */ - #ifndef OUI_H #define OUI_H @@ -1,9 +1,3 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright 2009, 2010 Daniel Borkmann. - * Subject to the GPL, version 2. - */ - #ifndef PROTOS_H #define PROTOS_H @@ -1,14 +1,9 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright 2009, 2010 Daniel Borkmann. - * Subject to the GPL, version 2. - */ - #ifndef TPRINTF_H #define TPRINTF_H #include "built_in.h" #include "colors.h" +#include "colorize.h" extern void tprintf_init(void); extern void tprintf(char *msg, ...) __check_format_printf(1, 2); @@ -18,10 +13,6 @@ extern void tprintf_cleanup(void); extern void tputchar_safe(int c); extern void tputs_safe(const char *str, size_t len); -#define colorize_start(fore) "\033[" __##fore "m" -#define colorize_start_full(fore, back) "\033[" __##fore ";" __on_##back "m" -#define colorize_end() "\033[" __reset "m" - #define DEFAULT_TTY_SIZE 80 #endif /* TPRINTF_H */ diff --git a/trafgen_conf.h b/trafgen_conf.h index 7281b59..f92e14c 100644 --- a/trafgen_conf.h +++ b/trafgen_conf.h @@ -1,9 +1,3 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright 2009, 2010 Daniel Borkmann. - * Subject to the GPL, version 2. - */ - #ifndef TRAFGEN_CONF #define TRAFGEN_CONF @@ -1,9 +1,3 @@ -/* - * netsniff-ng - the packet sniffing beast - * Copyright 2009, 2010 Daniel Borkmann. - * Subject to the GPL, version 2. - */ - #ifndef XMALLOC_H #define XMALLOC_H |