diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-03-18 07:49:08 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-03-18 12:58:07 +0100 |
commit | 48ca38c6068bd15a94b1ecf2977d3f0160bbe63b (patch) | |
tree | b15899a7dc87d400eabf56dcc67dc6f3b824addf /util.h | |
parent | 8bfcc9208cf99a653b9235bbe28ad5eb6c2e6bf2 (diff) | |
download | passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar.gz passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar.bz2 passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar.lz passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar.xz passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar.zst passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.zip |
passt: Run in background, add message logging with severities
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,13 @@ +void err(const char *format, ...); +void warn(const char *format, ...); +void info(const char *format, ...); + +#ifdef DEBUG +void debug(const char *format, ...); +#else +#define debug(...) { } +#endif + uint16_t csum_fold(uint32_t sum); uint16_t csum_ip4(void *buf, size_t len); void csum_tcp4(struct iphdr *iph); |