<feed xmlns='http://www.w3.org/2005/Atom'>
<title>accel-ppp.git/accel-pppd/ppp/ipcp_opt_dns.c, branch stable</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=stable</id>
<link rel='self' href='https://git.amelek.net/accel-ppp/accel-ppp.git/atom?h=stable'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/'/>
<updated>2018-11-12T14:00:37+00:00</updated>
<entry>
<title>ipcp: reject *-DNS-Address if we have no value to propose</title>
<updated>2018-11-12T14:00:37+00:00</updated>
<author>
<name>Guillaume Nault</name>
<email>g.nault@alphalink.fr</email>
</author>
<published>2018-11-07T18:28:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=1c40018e238dc27c9428631cf71633f218bd7824'/>
<id>urn:sha1:1c40018e238dc27c9428631cf71633f218bd7824</id>
<content type='text'>
If dns_opt-&gt;addr is NULL, then we have no address to propose (none
defined in accel-ppp.conf and none provided by RADIUS). Currently,
in that case, accel-ppp accepts and acks the address found in the peer's
configuration request. But the peer would normally use the undefined IP
address, so if we ack it, we explicitely tell the peer that 0.0.0.0 is
the primary/secondary DNS server.
If the peer already knows a DNS server IP address, it doesn't have to
negociate it with accel-ppp. It can just use it directly, after it
retrieved its own IP address. Therefore there is no need for accel-ppp
to blindly accept addresses proposed by the peer.

This patch rejects *-DNS-Address if accel-ppp has no DNS server to
propose, making it explicit to the peer that its request can't be
satisfied.

Signed-off-by: Guillaume Nault &lt;g.nault@alphalink.fr&gt;
</content>
</entry>
<entry>
<title>ipcp: fix uninitialised memory access when negociating *-DNS-Address</title>
<updated>2018-11-12T14:00:34+00:00</updated>
<author>
<name>Guillaume Nault</name>
<email>g.nault@alphalink.fr</email>
</author>
<published>2018-11-07T18:28:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=29b90105499d03957a63c0efb22a7852b2b1faa1'/>
<id>urn:sha1:29b90105499d03957a63c0efb22a7852b2b1faa1</id>
<content type='text'>
When handling the EV_DNS event, IPCP assumes that the -&gt;dns1 and -&gt;dns2
fields of the event structure are properly set. But that may not be the
case.
If only one of the MS-Primary-DNS-Server or MS-Secondary-DNS-Server
RADIUS attributes was received, then only -&gt;dns1 or -&gt;dns2 is set,
while the other keeps a non initialised value. This uninitialised value
is then copied by ev_dns() and proposed to the peer when negociating
the Primary-DNS-Address or Secondary-DNS-Address IPCP options.
That leaks four bytes of the stack to the network and prevents using
the values found in the [dns] section of accel-ppp.conf as fallback.

Fix this by initialising the whole event structure in rad_proc_attrs().
Then, in ev_dns(), we can check if -&gt;dns1 or -&gt;dns2 is properly set
before copying them. That allows to propery fallback to accel-ppp.conf
values when one of the values was not provided by RADIUS.

Signed-off-by: Guillaume Nault &lt;g.nault@alphalink.fr&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>backport 1.7</title>
<updated>2013-01-24T19:58:56+00:00</updated>
<author>
<name>Kozlov Dmitry</name>
<email>xeb@mail.ru</email>
</author>
<published>2013-01-24T19:58:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=cf3de06a3346854d770ba147f081e3b22e93c1bc'/>
<id>urn:sha1:cf3de06a3346854d770ba147f081e3b22e93c1bc</id>
<content type='text'>
* l2tp: Fix allocation checking when adding octets AVP
* cli, tcp: Fix non-NULL terminated string reception
* Fix va_end() missing calls
* chap-secrets: implemented encryption
* auth_pap: make messages like other auth modules
* cli: check xmit_buf is not null at enter to write function
* pppoe: implemented regular expression support
* chap-secrets: implemented encryption
* ippool: fixed initialization order
* optional shaper compiling
* ppp: dns/wins code cleanup
</content>
</entry>
<entry>
<title>add 'ppp' filed to CTRL to identify ppp sessions</title>
<updated>2012-08-29T07:40:34+00:00</updated>
<author>
<name>Kozlov Dmitry</name>
<email>xeb@mail.ru</email>
</author>
<published>2012-08-29T07:40:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=28df233a46f2d136e8169d86ee62861a7c024eff'/>
<id>urn:sha1:28df233a46f2d136e8169d86ee62861a7c024eff</id>
<content type='text'>
</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>radius: add support for MS-Primary-DNS-Server/MS-Secondary-DNS-Server attributes</title>
<updated>2012-03-11T07:19:54+00:00</updated>
<author>
<name>Kozlov Dmitry</name>
<email>xeb@mail.ru</email>
</author>
<published>2012-03-11T07:19:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=1e3e55bf5d13468c7272c626fd556c8f28c38d66'/>
<id>urn:sha1:1e3e55bf5d13468c7272c626fd556c8f28c38d66</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rewrited initialization procedure (fix gcc-4.6 builds)</title>
<updated>2011-05-30T07:24:27+00:00</updated>
<author>
<name>Kozlov Dmitry</name>
<email>dima@server</email>
</author>
<published>2011-05-30T07:24:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=276beb78cea777ff8d81d9f5a4cd107c5a3dc2aa'/>
<id>urn:sha1:276beb78cea777ff8d81d9f5a4cd107c5a3dc2aa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ppp: reload dns</title>
<updated>2011-01-14T04:06:10+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2011-01-14T04:06:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=dbe712a13ca62587b6e8a3bf5743655342f76419'/>
<id>urn:sha1:dbe712a13ca62587b6e8a3bf5743655342f76419</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>
