mirror of
https://passt.top/passt
synced 2025-06-10 17:45:34 +02:00
passt: Run in background, add message logging with severities
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
8bfcc9208c
commit
48ca38c606
6 changed files with 109 additions and 71 deletions
10
util.h
10
util.h
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue