<feed xmlns='http://www.w3.org/2005/Atom'>
<title>accel-ppp.git/drivers/vlan_mon, branch sstp-alloc-invariant</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=sstp-alloc-invariant</id>
<link rel='self' href='https://git.amelek.net/accel-ppp/accel-ppp.git/atom?h=sstp-alloc-invariant'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/'/>
<updated>2026-05-02T11:56:26+00:00</updated>
<entry>
<title>vlan_mon: bind ETH_P_ALL packet handler to init_net on kernels &gt;= 6.6</title>
<updated>2026-05-02T11:56:26+00:00</updated>
<author>
<name>Denys Fedoryshchenko</name>
<email>denys.f@collabora.com</email>
</author>
<published>2026-05-02T11:56:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=ca68d8c427d6654a73e018ab85d6191d6bfb191e'/>
<id>urn:sha1:ca68d8c427d6654a73e018ab85d6191d6bfb191e</id>
<content type='text'>
The vlan_mon driver registers a global packet_type with type=ETH_P_ALL
to intercept PADI/IP/ARP frames before they reach the protocol stack.
Since Linux 6.6 the per-net-namespace ptype_all conversion (commit
"net: af_packet: switch ptype_all to per-net-namespace lists") requires
every ETH_P_ALL packet_type to have either -&gt;dev or -&gt;af_packet_net
set; ptype_head() now does:

    WARN_ON_ONCE(!pt-&gt;af_packet_net &amp;&amp; !pt-&gt;dev);
    return pt-&gt;dev ? &amp;pt-&gt;dev-&gt;ptype_all
                   : &amp;pt-&gt;af_packet_net-&gt;ptype_all;

With both fields NULL on our static vlan_pt, dev_add_pack() trips the
WARN at module load and the handler is never linked into any usable
list, so vlan_pt_recv() is never invoked. Userspace sets up the
genetlink subscription correctly and gets a clean ACK from
VLAN_MON_CMD_ADD, but no notifications ever arrive because the kernel
side never sees the PADI. PPPoE-over-VLAN tests time out waiting for
PADO.

This was visible on Ubuntu's 6.17 azure kernel as a backtrace from
vlan_mon_init -&gt; dev_add_pack at net/core/dev.c:609 in dmesg, and as
a silent failure of tests/accel-pppd/pppoe/test_pppoe_vlan_mon.

Set vlan_pt.af_packet_net = &amp;init_net before dev_add_pack() on kernels
new enough to require it. The driver only operates in init_net anyway
(all dev_get_by_index() calls are against &amp;init_net), so this matches
existing behaviour.

Signed-off-by: Denys Fedoryshchenko &lt;denys.f@collabora.com&gt;
</content>
</entry>
<entry>
<title>Revert "build: add dkms support for ipoe and vlan_mon drivers, ci optimizations"</title>
<updated>2024-08-18T12:36:13+00:00</updated>
<author>
<name>Denys Fedoryshchenko</name>
<email>nuclearcat@nuclearcat.com</email>
</author>
<published>2024-08-18T12:36:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=34155624d86be9a49a39bac6e775526c510f4487'/>
<id>urn:sha1:34155624d86be9a49a39bac6e775526c510f4487</id>
<content type='text'>
</content>
</entry>
<entry>
<title>build: add dkms support for ipoe and vlan_mon drivers, ci optimizations</title>
<updated>2024-06-02T12:30:48+00:00</updated>
<author>
<name>Sergey V. Lobanov</name>
<email>sergey@lobanov.in</email>
</author>
<published>2024-05-28T19:46:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=d9fc4be48641bc7116e4dacbdb5e3115c3181a89'/>
<id>urn:sha1:d9fc4be48641bc7116e4dacbdb5e3115c3181a89</id>
<content type='text'>
Signed-off-by: Sergey V. Lobanov &lt;sergey@lobanov.in&gt;
</content>
</entry>
<entry>
<title>ipoe/vlan_mon: Add proper accel_ppp_version to vlan_mon and ipoe</title>
<updated>2024-04-02T00:15:30+00:00</updated>
<author>
<name>Denys Fedoryshchenko</name>
<email>denys.f@collabora.com</email>
</author>
<published>2024-04-01T21:16:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=6de7ff916bca3ef97eefca9e36cd8db45c2a0c7e'/>
<id>urn:sha1:6de7ff916bca3ef97eefca9e36cd8db45c2a0c7e</id>
<content type='text'>
Signed-off-by: Denys Fedoryshchenko &lt;denys.f@collabora.com&gt;
</content>
</entry>
<entry>
<title>ipoe:vlan_mon: add support for kernels 6.4+</title>
<updated>2023-09-23T09:35:42+00:00</updated>
<author>
<name>Dmitriy Eshenko</name>
<email>dmitriy.eshenko@accel-ppp.org</email>
</author>
<published>2023-09-23T09:35:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=30bde382bed321e6bc24ce8918c3693ee3c74943'/>
<id>urn:sha1:30bde382bed321e6bc24ce8918c3693ee3c74943</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ipoe,vlan_mon: add support for kernels 6.1+</title>
<updated>2023-01-24T12:49:04+00:00</updated>
<author>
<name>Dmitriy Eshenko</name>
<email>dmitriy.eshenko@accel-ppp.org</email>
</author>
<published>2023-01-24T12:49:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=b120b0d83e2145d1681f10003b13274dec6dc412'/>
<id>urn:sha1:b120b0d83e2145d1681f10003b13274dec6dc412</id>
<content type='text'>
Co-authored-by: Martin Zaharinov &lt;micron@bngsoft.net&gt;
</content>
</entry>
<entry>
<title>ipoe,vlan_mon: add support for kernels 5.2+</title>
<updated>2019-12-24T11:50:04+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2019-12-24T11:50:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=4d837cc3bd92493732f2c598560e9e83c82f9b9e'/>
<id>urn:sha1:4d837cc3bd92493732f2c598560e9e83c82f9b9e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cmake: reworked debian related package generation rules</title>
<updated>2018-01-06T17:56:52+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2018-01-06T17:56:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=7cf52228f39c78bda7d2402faf8faf4ee7d4a6e5'/>
<id>urn:sha1:7cf52228f39c78bda7d2402faf8faf4ee7d4a6e5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ipoe,vlan_mon: updated up to kernel 4.14</title>
<updated>2017-12-27T20:52:31+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2017-12-27T20:52:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=d7c91b0e301375c06feecbb2e714b13860e2c35f'/>
<id>urn:sha1:d7c91b0e301375c06feecbb2e714b13860e2c35f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ipoe,vlan_mon: define RHEL_MAJOR=0 if not set</title>
<updated>2017-12-15T14:32:44+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2017-12-15T14:32:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=7c6e850009a63baf51ef27e9bee3dff6b6b54c56'/>
<id>urn:sha1:7c6e850009a63baf51ef27e9bee3dff6b6b54c56</id>
<content type='text'>
</content>
</entry>
</feed>
