<feed xmlns='http://www.w3.org/2005/Atom'>
<title>accel-ppp.git/accel-pppd/log.h, branch 1.15.0</title>
<subtitle>High performance PPTP/L2TP/SSTP/PPPoE/IPoE server for Linux (mirror of https://github.com/accel-ppp/accel-ppp.git)
</subtitle>
<id>https://git.amelek.net/accel-ppp/accel-ppp.git/atom?h=1.15.0</id>
<link rel='self' href='https://git.amelek.net/accel-ppp/accel-ppp.git/atom?h=1.15.0'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/'/>
<updated>2026-10-28T12:35:29+00:00</updated>
<entry>
<title>log: bound log lines and share target unpacking</title>
<updated>2026-10-28T12:35:29+00:00</updated>
<author>
<name>Denys Fedoryshchenko</name>
<email>denys.f@collabora.com</email>
</author>
<published>2026-10-28T12:18:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=58e399400c4ef4b71472ab7c2c71c54a677a05a8'/>
<id>urn:sha1:58e399400c4ef4b71472ab7c2c71c54a677a05a8</id>
<content type='text'>
A log line is flushed only when its text ends in a newline, so it can be
assembled from any number of log calls. Packet printers make one call per
attribute, so a single line could grow far beyond LOG_MAX_SIZE, while the
tcp, syslog and pgsql targets each copied the whole chunk list into a
fixed size buffer without checking its length.

Cap the accumulated line at LOG_MAX_SIZE in do_log(), keeping the
trailing newline so the line is still flushed, and replace the three
duplicated unpack loops with log_unpack_msg(), which never writes past
the size it is given. The syslog bound is needed on its own: a session
header plus a full length line does not fit its buffer.

Also skip empty formatted strings, which made do_log() read the byte
before its buffer.

When a single call is cut short by vsnprintf its newline is lost; restore
it when the format ends in one, so the line is closed instead of
swallowing the next one. The syslog and pgsql targets now strip the
trailing newline only when it is there, instead of dropping the last
character of a line cut to fit.

Signed-off-by: Denys Fedoryshchenko &lt;denys.f@collabora.com&gt;
</content>
</entry>
<entry>
<title>remove trailing whitespaces</title>
<updated>2014-11-22T05:56:40+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2014-11-22T05:56:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=81ca3923a29ea9b67f7291be23b210019546aa5f'/>
<id>urn:sha1:81ca3923a29ea9b67f7291be23b210019546aa5f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add compilation checks for printf-style format strings</title>
<updated>2012-09-05T18:31:15+00:00</updated>
<author>
<name>Guillaume Nault</name>
<email>g.nault@alphalink.fr</email>
</author>
<published>2012-09-04T18:29:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=fdeeb6f8547617a0478ffe847b76c46fa45487d0'/>
<id>urn:sha1:fdeeb6f8547617a0478ffe847b76c46fa45487d0</id>
<content type='text'>
Append the format() __attribute__ to function prototypes which
use a format string. This allows GCC to check for consistency
between the format string and its arguments when these
functions are called.

Signed-off-by: Guillaume Nault &lt;g.nault@alphalink.fr&gt;
</content>
</entry>
<entry>
<title>general preparation for IPoE integration</title>
<updated>2012-06-19T15:06:06+00:00</updated>
<author>
<name>Kozlov Dmitry</name>
<email>xeb@mail.ru</email>
</author>
<published>2012-06-19T15:06:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=02b3fb2b24aacd90d535c2136a055f529d722974'/>
<id>urn:sha1:02b3fb2b24aacd90d535c2136a055f529d722974</id>
<content type='text'>
</content>
</entry>
<entry>
<title>log: move LOG_CHUNK_SIZE definition back to the header</title>
<updated>2011-08-24T11:40:32+00:00</updated>
<author>
<name>Kozlov Dmitry</name>
<email>dima@server</email>
</author>
<published>2011-08-24T11:40:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=ddf521bb0f46c589d18d25bbecabd986ee521182'/>
<id>urn:sha1:ddf521bb0f46c589d18d25bbecabd986ee521182</id>
<content type='text'>
</content>
</entry>
<entry>
<title>snmp support</title>
<updated>2011-08-19T10:04:55+00:00</updated>
<author>
<name>Kozlov Dmitry</name>
<email>dima@server</email>
</author>
<published>2011-08-19T10:04:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=5ef49162ea9763ca9878c22e3736766d8f1db014'/>
<id>urn:sha1:5ef49162ea9763ca9878c22e3736766d8f1db014</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rename accel-pptp to accel-ppp</title>
<updated>2011-01-05T12:18:59+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2011-01-05T12:18:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=f28cb1b0a926f1ea98700b7871537ad1793511fd'/>
<id>urn:sha1:f28cb1b0a926f1ea98700b7871537ad1793511fd</id>
<content type='text'>
</content>
</entry>
</feed>
