summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe
diff options
context:
space:
mode:
authorMichael Brown2011-03-10 06:33:45 +0100
committerMichael Brown2011-03-10 06:36:31 +0100
commite49d81689c3426560acc84d6f7ef9fa231304169 (patch)
tree1f70ead6f0117eca8dcd35c635119652ab8f8a71 /src/include/ipxe
parent[console] Move include/console.h to include/ipxe/console.h (diff)
downloadipxe-e49d81689c3426560acc84d6f7ef9fa231304169.tar.gz
ipxe-e49d81689c3426560acc84d6f7ef9fa231304169.tar.xz
ipxe-e49d81689c3426560acc84d6f7ef9fa231304169.zip
[syslog] Add support for sending console output to a syslog server
Originally-implemented-by: Anselm Martin Hoffmeister <anselm@hoffmeister.be> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r--src/include/ipxe/syslog.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/include/ipxe/syslog.h b/src/include/ipxe/syslog.h
new file mode 100644
index 000000000..25edc6b0c
--- /dev/null
+++ b/src/include/ipxe/syslog.h
@@ -0,0 +1,36 @@
+#ifndef _IPXE_SYSLOG_H
+#define _IPXE_SYSLOG_H
+
+/** @file
+ *
+ * Syslog protocol
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+/** Syslog server port */
+#define SYSLOG_PORT 514
+
+/** Syslog line buffer size
+ *
+ * This is a policy decision
+ */
+#define SYSLOG_BUFSIZE 128
+
+/** Syslog facility
+ *
+ * This is a policy decision
+ */
+#define SYSLOG_FACILITY 0 /* kernel */
+
+/** Syslog severity
+ *
+ * This is a policy decision
+ */
+#define SYSLOG_SEVERITY 6 /* informational */
+
+/** Syslog priority */
+#define SYSLOG_PRIORITY( facility, severity ) ( 8 * (facility) + (severity) )
+
+#endif /* _IPXE_SYSLOG_H */