Mercurial > syslog2iptables
comparison src/syslogconfig.cpp @ 69:0e736950a117 stable-1-0-16
fix post uninstall script; allow config bucket count zero to disable a pattern
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 21 Dec 2015 07:56:18 -0800 |
parents | 60f59936fabb |
children | c6c8a2102a3e |
comparison
equal
deleted
inserted
replaced
68:47db94733fe2 | 69:0e736950a117 |
---|---|
93 } | 93 } |
94 } | 94 } |
95 } | 95 } |
96 } | 96 } |
97 | 97 |
98 else { // amount < 0 | 98 else if (amount < 0) { |
99 char buf[maxlen]; | 99 char buf[maxlen]; |
100 in_addr ad; | 100 in_addr ad; |
101 ad.s_addr = htonl(ip); | 101 ad.s_addr = htonl(ip); |
102 snprintf(buf, maxlen, "%s for %s", message, inet_ntoa(ad)); | 102 snprintf(buf, maxlen, "%s for %s", message, inet_ntoa(ad)); |
103 my_syslog(buf); | 103 my_syslog(buf); |