--- ./sysklogd/syslogd.c~ 2006-03-30 21:44:51.000000000 +0200 +++ ./sysklogd/syslogd.c 2006-03-30 21:42:34.000000000 +0200 @@ -132,7 +132,7 @@ #include /* our shared key */ -static const long KEY_ID = 0x414e4547; /*"GENA" */ +static long KEY_ID = 0x414e4500; /*"\0ENA" */ // Semaphore operation structures static struct shbuf_ds { @@ -795,7 +795,7 @@ char *p; /* do normal option parsing */ - while ((opt = getopt(argc, argv, "m:nO:s:uSb:R:Ll:k:C::")) > 0) { + while ((opt = getopt(argc, argv, "m:nO:s:uSb:R:Ll:k:K:C::")) > 0) { switch (opt) { case 'm': MarkInterval = atoi(optarg) * 60; @@ -856,6 +856,10 @@ } circular_logging = TRUE; break; + case 'K': + KEY_ID = (KEY_ID & ~0xFF) | (atoi(optarg) & 0xFF); + circular_logging = TRUE; + break; #endif case 'u': doListenUnix = FALSE; --- ./include/usage.h.orig 2006-03-30 21:53:08.000000000 +0200 +++ ./include/usage.h 2006-03-30 21:55:58.000000000 +0200 @@ -2919,7 +2919,8 @@ USAGE_SYSLOG_INCLUDE_KLOG( \ "\n\t-k LEVEL\tCollect kernel logs and set console to display logs below LEVEL (1-8)\n") \ USAGE_IPC_LOG( \ - "\n\t-C [size(KiB)]\tLog to a circular buffer (read the buffer using logread)") + "\n\t-C [size(KiB)]\tLog to a circular buffer (read the buffer using logread)\n" \ + "\t-K KEYID\tUse this ID for the circular buffer (0..255, default=0)") #define syslogd_example_usage \ "$ syslogd -R masterlog:514\n" \ "$ syslogd -R 192.168.1.1:601\n"