svetlanov: (Default)
Yura Svetlanov ([personal profile] svetlanov) wrote2013-06-04 10:32 am

arpwatch report patch

Этот патч для arpwatch добавляет IP адрес в тему письма в случае, если не был определён реверс

--- report.c.orig        2013-03-19 09:49:08.000000000 +0700
+++ report.c    2013-03-19 10:04:40.000000000 +0700
@@ -310,7 +310,7 @@
        if (hn != NULL)
                (void)fprintf(f, "Subject: %s (%s)\n", title, hn);
        else {
-               (void)fprintf(f, "Subject: %s\n", title);
+               (void)fprintf(f, "Subject: %s (%s)\n", title, intoa(a));
                hn = unknown;
        }
        (void)putc('\n', f);

Post a comment in response:

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org