<feed xmlns='http://www.w3.org/2005/Atom'>
<title>accel-ppp-xebd.git/accel-pppd/libnetlink, branch 1.12</title>
<subtitle>High performance PPTP/L2TP/PPPoE/IPoE server for Linux (mirror of https://github.com/marekm72/accel-ppp-xebd.git)
</subtitle>
<id>https://git.amelek.net/marekm72/accel-ppp-xebd.git/atom?h=1.12</id>
<link rel='self' href='https://git.amelek.net/marekm72/accel-ppp-xebd.git/atom?h=1.12'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp-xebd.git/'/>
<updated>2018-12-20T03:21:36+00:00</updated>
<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/marekm72/accel-ppp-xebd.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/marekm72/accel-ppp-xebd.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/marekm72/accel-ppp-xebd.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/marekm72/accel-ppp-xebd.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/marekm72/accel-ppp-xebd.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/marekm72/accel-ppp-xebd.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>libnetlink: make libnetlink.h self-contained</title>
<updated>2018-10-26T03:34:34+00:00</updated>
<author>
<name>Guillaume Nault</name>
<email>g.nault@alphalink.fr</email>
</author>
<published>2018-10-24T14:36:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp-xebd.git/commit/?id=9fbad3fad720fe69c83d9522ca2edd0b42f3b22d'/>
<id>urn:sha1:9fbad3fad720fe69c83d9522ca2edd0b42f3b22d</id>
<content type='text'>
We need to include &lt;sys/types.h&gt; to define 'pid_t'.

Signed-off-by: Guillaume Nault &lt;g.nault@alphalink.fr&gt;
</content>
</entry>
<entry>
<title>libnetlink: make ipset.h self-contained</title>
<updated>2018-10-26T03:34:34+00:00</updated>
<author>
<name>Guillaume Nault</name>
<email>g.nault@alphalink.fr</email>
</author>
<published>2018-10-24T14:36:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp-xebd.git/commit/?id=42a50d419f709b93fbd124f8ba6e0041009e4f62'/>
<id>urn:sha1:42a50d419f709b93fbd124f8ba6e0041009e4f62</id>
<content type='text'>
We need to include &lt;netinet/in.h&gt; to define 'in_addr_t'.

Signed-off-by: Guillaume Nault &lt;g.nault@alphalink.fr&gt;
</content>
</entry>
<entry>
<title>iputils: make iputils.h self-contained</title>
<updated>2018-10-26T03:34:34+00:00</updated>
<author>
<name>Guillaume Nault</name>
<email>g.nault@alphalink.fr</email>
</author>
<published>2018-10-24T14:36:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp-xebd.git/commit/?id=7ba8d8d091a16fe2513b2a472ef87a20fc41f39f'/>
<id>urn:sha1:7ba8d8d091a16fe2513b2a472ef87a20fc41f39f</id>
<content type='text'>
We need to include &lt;stdint.h&gt; to define 'uint32_t' and &lt;netinet/in.h&gt;
for 'in_addr_t' and 'struct in6_addr'.

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/marekm72/accel-ppp-xebd.git/commit/?id=fd996b7dc4464bbfccafaa4ba52246258fc4ae89'/>
<id>urn:sha1:fd996b7dc4464bbfccafaa4ba52246258fc4ae89</id>
<content type='text'>
</content>
</entry>
</feed>
