From 2c7555cf2ac8439713dd9148b348128c57222a38 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Wed, 13 Dec 2023 03:48:12 +0100 Subject: Log: Add support for UDP logging Add support for UDP logging, using RFC 3164 syslog protocol. Based on the patch from Alexander Zubkov , thanks! --- lib/socket.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 */ -- cgit v1.2.3