<feed xmlns='http://www.w3.org/2005/Atom'>
<title>accel-ppp.git/accel-pppd/libnetlink/iputils.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>2024-08-26T20:58:31+00:00</updated>
<entry>
<title>iputils: fix vlan creation on big-endian platforms</title>
<updated>2024-08-26T20:58:31+00:00</updated>
<author>
<name>Sergey V. Lobanov</name>
<email>sergey@lobanov.in</email>
</author>
<published>2024-08-26T20:52:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=2bea84120264ac1b787a7f9fbe970d8ff4d7c028'/>
<id>urn:sha1:2bea84120264ac1b787a7f9fbe970d8ff4d7c028</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libnetlink: fix a crash with a non vlan interface</title>
<updated>2023-06-26T13:47:58+00:00</updated>
<author>
<name>Philippe Guibert</name>
<email>philippe.guibert@6wind.com</email>
</author>
<published>2022-12-30T10:00:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=ca3d2113d3f4f1a662b58bb36d28d677b6f4ba00'/>
<id>urn:sha1:ca3d2113d3f4f1a662b58bb36d28d677b6f4ba00</id>
<content type='text'>
Fix a segmentation fault when starting when accel-ppp is configured with
an non vlan interface.

Signed-off-by: Philippe Guibert &lt;philippe.guibert@6wind.com&gt;
Signed-off-by: Louis Scalbert &lt;louis.scalbert@6wind.com&gt;
</content>
</entry>
<entry>
<title>Use 64-bit interface statistics rather than doing custom 32-bit overflow handling.</title>
<updated>2022-11-01T08:51:34+00:00</updated>
<author>
<name>Stephan Brunner</name>
<email>s.brunner@stephan-brunner.net</email>
</author>
<published>2022-11-01T08:51:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=ffe3a1337c1380a5b79651b34037c6c9f66b9ea1'/>
<id>urn:sha1:ffe3a1337c1380a5b79651b34037c6c9f66b9ea1</id>
<content type='text'>
When a link has a relatively high throughput, the 32-bit packet and byte counters could overflow multiple times between accounting runs.
To accommodate this limitation, directly use 64-bit interface statistics.
This also gets rid of the internal giga-word counters.
</content>
</entry>
<entry>
<title>iputils: remove unnecessary NLM_F_ACK</title>
<updated>2018-12-20T03:21:36+00:00</updated>
<author>
<name>Guillaume Nault</name>
<email>g.nault@alphalink.fr</email>
</author>
<published>2018-12-19T18:13:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=46f5f9c1aa42b8cbd1764cc1b4e4a8abcd3e9fdb'/>
<id>urn:sha1:46f5f9c1aa42b8cbd1764cc1b4e4a8abcd3e9fdb</id>
<content type='text'>
Using NLM_F_ACK in these functions is confusing because they don't
parse any netlink response.

In fact, NLM_F_ACK is only required internally by rtnl_talk(), which
already adds it when its 'answer' parameter is NULL. Therefore it's
useless to manually set it in functions that don't set 'answer'.

Signed-off-by: Guillaume Nault &lt;g.nault@alphalink.fr&gt;
</content>
</entry>
<entry>
<title>iputils: remove NLM_F_CREATE flag from ip6{route,addr}_del()</title>
<updated>2018-12-20T03:21:35+00:00</updated>
<author>
<name>Guillaume Nault</name>
<email>g.nault@alphalink.fr</email>
</author>
<published>2018-12-19T18:13:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=412e908eb181901daaea6eee4174787f65901d3f'/>
<id>urn:sha1:412e908eb181901daaea6eee4174787f65901d3f</id>
<content type='text'>
These are deletion requests. NLM_F_CREATE is confusing for readers and
ignored by kernel.

Signed-off-by: Guillaume Nault &lt;g.nault@alphalink.fr&gt;
</content>
</entry>
<entry>
<title>iputils: always set scope to RT_SCOPE_UNIVERSE in ip6route_{add,del}()</title>
<updated>2018-12-20T03:21:33+00:00</updated>
<author>
<name>Guillaume Nault</name>
<email>g.nault@alphalink.fr</email>
</author>
<published>2018-12-19T18:13:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=525fe7ee879c758f91b1f48c25598775ac6d62ad'/>
<id>urn:sha1:525fe7ee879c758f91b1f48c25598775ac6d62ad</id>
<content type='text'>
No need to be clever here. All IPv6 routes have global scope (kernel
ignores rtm_scope for IPv6 and always reports RT_SCOPE_UNIVERSE when
dumping such routes).

Signed-off-by: Guillaume Nault &lt;g.nault@alphalink.fr&gt;
</content>
</entry>
<entry>
<title>iputils: set scope depending on gateway in iproute_{add,del}()</title>
<updated>2018-12-20T03:21:31+00:00</updated>
<author>
<name>Guillaume Nault</name>
<email>g.nault@alphalink.fr</email>
</author>
<published>2018-12-19T18:13:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=55bcbfff7cc59d7607dea22a1bb7dfe55a13d174'/>
<id>urn:sha1:55bcbfff7cc59d7607dea22a1bb7dfe55a13d174</id>
<content type='text'>
From a logical point of view, we have link scope if no gateway is
present, and global scope otherwise. Therefore it makes more sense
to set rtm_scope depending on 'gw' rather than on 'ifindex'.

Currently, callers of iproute_add() and iproute_del() either set
'ifindex' or 'gw', but never both. So even if confusing, the current
code results in right scope selection. However one can't figure this
out without analysing every caller.

We should set rtm_scope based on the presence of the gateway instead.
Given the current code base, that doesn't change the end result, but
that better maches the scope concept. Also, that's the way iproute2
does its selection.

Furthermore, it'd be perfectly valid to have both 'iface' and 'gw' set.
In that case, scope should be RT_SCOPE_UNIVERSE instead of
RT_SCOPE_LINK. Basing scope selection on 'gw' makes this case work
correctly.

Signed-off-by: Guillaume Nault &lt;g.nault@alphalink.fr&gt;
</content>
</entry>
<entry>
<title>iputils: add 'src' and 'gw' parameters to iproute_del()</title>
<updated>2018-12-20T03:21:28+00:00</updated>
<author>
<name>Guillaume Nault</name>
<email>g.nault@alphalink.fr</email>
</author>
<published>2018-12-19T18:13:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=6f6f7f2efb9432efe7d3b4f749022da2cfc39fb3'/>
<id>urn:sha1:6f6f7f2efb9432efe7d3b4f749022da2cfc39fb3</id>
<content type='text'>
Rework iproute_del() to have the same parameters as iproute_add().
This will allow callers to specify more precisely the route they want
to delete.

Callers will later be converted to make use of these parameters to
ensure that the removed route precisely matches the one that was
originaly inserted.

Signed-off-by: Guillaume Nault &lt;g.nault@alphalink.fr&gt;
</content>
</entry>
<entry>
<title>libnetlink: add gateway and priority parameters to ip6route_*()</title>
<updated>2018-12-04T03:26:35+00:00</updated>
<author>
<name>Guillaume Nault</name>
<email>g.nault@alphalink.fr</email>
</author>
<published>2018-11-30T16:36:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=896b7ae69c33721d70837202257d3674d22fe465'/>
<id>urn:sha1:896b7ae69c33721d70837202257d3674d22fe465</id>
<content type='text'>
Let callers set a gateway and a priority to IPv6 routes. This is
necessary for implementing the RADIUS Framed-IPv6-Route attribute.

Also let ip6route_del() configure .rtm_protocol. This is already
implemented in ip6route_add(), so we need to add the ip6route_del()
counterpart. Otherwise, we couldn't delete routes that were added using
a non-zero protocol.

Signed-off-by: Guillaume Nault &lt;g.nault@alphalink.fr&gt;
</content>
</entry>
<entry>
<title>ifcfg: assign p-t-p address if mask=32 and regular address in other cases</title>
<updated>2018-05-25T09:44:41+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2018-05-25T09:44:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/accel-ppp/accel-ppp.git/commit/?id=fd996b7dc4464bbfccafaa4ba52246258fc4ae89'/>
<id>urn:sha1:fd996b7dc4464bbfccafaa4ba52246258fc4ae89</id>
<content type='text'>
</content>
</entry>
</feed>
