summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2023-12-13 03:48:12 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2023-12-13 04:01:09 +0100
commit2c7555cf2ac8439713dd9148b348128c57222a38 (patch)
tree491afd5a5e62cffd85dee4f726d4eb2f3db42cf8 /lib
parent8cf1be6f67eaeb9bfd2fffe4a4bc9ae419adffd5 (diff)
Log: Add support for UDP logging
Add support for UDP logging, using RFC 3164 syslog protocol. Based on the patch from Alexander Zubkov <green@qrator.net>, thanks!
Diffstat (limited to 'lib')
-rw-r--r--lib/socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/socket.h b/lib/socket.h
index 0b6ac589..231c10d8 100644
--- a/lib/socket.h
+++ b/lib/socket.h
@@ -124,6 +124,7 @@ extern int sk_priority_control; /* Suggested priority for control traffic, shou
#define SKF_BIND 0x10 /* Bind datagram socket to given source address */
#define SKF_HIGH_PORT 0x20 /* Choose port from high range if possible */
#define SKF_FREEBIND 0x40 /* Allow socket to bind to a nonlocal address */
+#define SKF_CONNECT 0x80 /* Connect datagram socket to given dst address/port */
#define SKF_THREAD 0x100 /* Socked used in thread, Do not add to main loop */
#define SKF_TRUNCATED 0x200 /* Received packet was truncated, set by IO layer */