]> git.pld-linux.org Git - packages/djbdns.git/blame - djbdns-tinydns-log-ipv6.patch
tinydns-log: add sample to log only fatals and startup messages
[packages/djbdns.git] / djbdns-tinydns-log-ipv6.patch
CommitLineData
6d7c876b
ER
1--- ./tinydns-log~ 2005-05-03 13:00:43.000000000 +0300
2+++ ./tinydns-log 2005-05-03 13:00:45.000000000 +0300
3@@ -10,7 +10,7 @@
4 # to support axfrdns logs as well as tinydns logs
5
6 # convert addresses in hex to dotted decimal notation.
7-s/\b([a-f0-9]{8})\b/join(".", unpack("C*", pack("H8", $1)))/eg;
8+s/(?:00000000000000000000ffff|\b)([a-f0-9]{8})\b/join(".", unpack("C*", pack("H8", $1)))/eg;
9
10 ### clean up some messages
11 # convert stuff like 127.0.0.2:0422:05be to something more descriptive.
12--- ./tinydns-log~ 2005-05-03 13:12:45.000000000 +0300
13+++ ./tinydns-log 2005-05-03 13:12:46.000000000 +0300
14@@ -9,6 +9,9 @@
15 # modified 26-AUG-2002 by Andrew Pam <xanni@sericyb.com.au>
16 # to support axfrdns logs as well as tinydns logs
17
18+# turn off buffering
19+$| = 1;
20+
21 # convert addresses in hex to dotted decimal notation.
22 s/(?:00000000000000000000ffff|\b)([a-f0-9]{8})\b/join(".", unpack("C*", pack("H8", $1)))/eg;
23
This page took 0.038657 seconds and 4 git commands to generate.