<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/NetworkManager.git/src/nmcli, branch bg/proxy</title>
<subtitle>gitlab.freedesktop.org: NetworkManager/NetworkManager.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/'/>
<entry>
<title>all: use nm_random_*() instead of g_random_*()</title>
<updated>2023-01-30T09:51:13+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2023-01-27T11:52:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=6e96d7173168e2231cf576bc9f2aeb1f13529bca'/>
<id>6e96d7173168e2231cf576bc9f2aeb1f13529bca</id>
<content type='text'>
g_random_*() is based on GRand, which is not a CSPRNG. Instead, rely on
kernel to give us good random numbers, which is what nm_random_*() does.

Note that nm_random_*() calls getrandom() (or reads /dev/urandom), which
most likely is slower than GRand. It doesn't matter for our uses though.

It is cumbersome to review all uses of g_rand_*() whether their usage of
a non-cryptographically secure generator is appropriate. Instead, just
always use an appropriate function, thereby avoiding this question. Even
glib documentation refers to reading "/dev/urandom" as alternative. Which
is what nm_random_*() does. These days, it seems unnecessary to not use
the best random generator available, unless it's not fast enough or you
need a stable/seedable stream of random numbers.

In particular in nmcli, we used g_random_int_range() to generate
passwords. That is not appropriate. Sure, it's *only* for the hotspot,
but still.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
g_random_*() is based on GRand, which is not a CSPRNG. Instead, rely on
kernel to give us good random numbers, which is what nm_random_*() does.

Note that nm_random_*() calls getrandom() (or reads /dev/urandom), which
most likely is slower than GRand. It doesn't matter for our uses though.

It is cumbersome to review all uses of g_rand_*() whether their usage of
a non-cryptographically secure generator is appropriate. Instead, just
always use an appropriate function, thereby avoiding this question. Even
glib documentation refers to reading "/dev/urandom" as alternative. Which
is what nm_random_*() does. These days, it seems unnecessary to not use
the best random generator available, unless it's not fast enough or you
need a stable/seedable stream of random numbers.

In particular in nmcli, we used g_random_int_range() to generate
passwords. That is not appropriate. Sure, it's *only* for the hotspot,
but still.
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli/style: fix clang-format style</title>
<updated>2023-01-27T07:32:39+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2023-01-27T07:32:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=108ab677e4121c97bb641068f656502cbcd33dd3'/>
<id>108ab677e4121c97bb641068f656502cbcd33dd3</id>
<content type='text'>
Fixes: 8132045d5feb ('nmcli: fix typos in nmcli output')
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes: 8132045d5feb ('nmcli: fix typos in nmcli output')
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli: fix typos in nmcli output</title>
<updated>2023-01-27T07:00:02+00:00</updated>
<author>
<name>Michael Biebl</name>
<email>biebl@debian.org</email>
</author>
<published>2023-01-26T20:49:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=8132045d5feb6bb855079b8476b119bfa8fbdab2'/>
<id>8132045d5feb6bb855079b8476b119bfa8fbdab2</id>
<content type='text'>
Spotted by lintian:
  I: network-manager: spelling-error-in-binary writting writing [usr/bin/nmcli]
  I: network-manager: spelling-error-in-binary wihout without [usr/lib/x86_64-linux-gnu/NetworkManager/1.40.12/libnm-device-plugin-wifi.so]

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1515
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Spotted by lintian:
  I: network-manager: spelling-error-in-binary writting writing [usr/bin/nmcli]
  I: network-manager: spelling-error-in-binary wihout without [usr/lib/x86_64-linux-gnu/NetworkManager/1.40.12/libnm-device-plugin-wifi.so]

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1515
</pre>
</div>
</content>
</entry>
<entry>
<title>all: add support for ovs-dpdk n-rxq-desc and n-txq-desc</title>
<updated>2023-01-17T07:45:04+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2023-01-13T09:33:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=f930d55fea4a9cd7cd7b7cd9c6875be58719ef4c'/>
<id>f930d55fea4a9cd7cd7b7cd9c6875be58719ef4c</id>
<content type='text'>
https://bugzilla.redhat.com/show_bug.cgi?id=2156385

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1500
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://bugzilla.redhat.com/show_bug.cgi?id=2156385

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1500
</pre>
</div>
</content>
</entry>
<entry>
<title>ovs: add support for "other_config" settings</title>
<updated>2023-01-11T20:49:36+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2023-01-11T10:51:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=a259303e1d5aa593cef2cfdff7b4d7f8c488288e'/>
<id>a259303e1d5aa593cef2cfdff7b4d7f8c488288e</id>
<content type='text'>
See `man ovs-vswitchd.conf.db` for documentation of "other_config" keys.

https://bugzilla.redhat.com/show_bug.cgi?id=2151455
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See `man ovs-vswitchd.conf.db` for documentation of "other_config" keys.

https://bugzilla.redhat.com/show_bug.cgi?id=2151455
</pre>
</div>
</content>
</entry>
<entry>
<title>all: add new "ipv[46].auto-route-ext-gw" setting</title>
<updated>2023-01-09T08:35:52+00:00</updated>
<author>
<name>Frederic Martinsons</name>
<email>frederic.martinsons@unabiz.com</email>
</author>
<published>2023-01-03T12:33:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=4509c303fa6f9861a9242e68de510d62e747c273'/>
<id>4509c303fa6f9861a9242e68de510d62e747c273</id>
<content type='text'>
For external gateway route management. This setting allows an user
to deactivate the automatic route addition to the external gateway.
It can be especially useful when a VPN inside another VPN is used.

Signed-off-by: Frederic Martinsons &lt;frederic.martinsons@unabiz.com&gt;

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/204

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1491
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For external gateway route management. This setting allows an user
to deactivate the automatic route addition to the external gateway.
It can be especially useful when a VPN inside another VPN is used.

Signed-off-by: Frederic Martinsons &lt;frederic.martinsons@unabiz.com&gt;

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/204

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1491
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli: fix double free</title>
<updated>2022-12-22T10:24:37+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2022-12-22T10:23:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=a39ec8ca75eee38fcef18b5e3f1e5e61128f82ba'/>
<id>a39ec8ca75eee38fcef18b5e3f1e5e61128f82ba</id>
<content type='text'>
 src/nmcli/devices.c:1196: double_free: Calling "_nm_auto_strfreev" frees pointer "arg_arr" which has already been freed.

Fixes: c5d45848dd07 ('cli: mark argv argument for command line parsing as const')
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 src/nmcli/devices.c:1196: double_free: Calling "_nm_auto_strfreev" frees pointer "arg_arr" which has already been freed.

Fixes: c5d45848dd07 ('cli: mark argv argument for command line parsing as const')
</pre>
</div>
</content>
</entry>
<entry>
<title>libnm: support VTI properties in the ip-tunnel setting</title>
<updated>2022-12-21T13:04:44+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2022-10-24T08:18:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=199eb725ad96c66793ca2afa5d9c06e266592a5b'/>
<id>199eb725ad96c66793ca2afa5d9c06e266592a5b</id>
<content type='text'>
Add the fwmark property and allow setting input and output key for VTI
tunnels.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add the fwmark property and allow setting input and output key for VTI
tunnels.
</pre>
</div>
</content>
</entry>
<entry>
<title>libnm,nmcli: add vlan.protocol property</title>
<updated>2022-12-14T10:33:03+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2022-12-02T15:36:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=1bbde12e5741b260b16639711033d2da738e0706'/>
<id>1bbde12e5741b260b16639711033d2da738e0706</id>
<content type='text'>
Introduce a "vlan.protocol" property that specifies the protocol of a
VLAN, which controls the tag (EtherType) used for encapsulation.

Regular VLANs use 802.1Q (tag 0x8100). To implement VLAN stacking it's
sometimes useful to have 802.1ad VLANs with tag 0x88A8.

The property is a string instead of e.g. an enum because this allows
maximum flexibility in the future. For example, it becomes possible to
specify an arbitrary number in case if the kernel ever allows it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce a "vlan.protocol" property that specifies the protocol of a
VLAN, which controls the tag (EtherType) used for encapsulation.

Regular VLANs use 802.1Q (tag 0x8100). To implement VLAN stacking it's
sometimes useful to have 802.1ad VLANs with tag 0x88A8.

The property is a string instead of e.g. an enum because this allows
maximum flexibility in the future. For example, it becomes possible to
specify an arbitrary number in case if the kernel ever allows it.
</pre>
</div>
</content>
</entry>
<entry>
<title>all: fix various "-Wcast-align=strict" warnings</title>
<updated>2022-12-09T08:15:56+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2022-12-01T13:07:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=36f8de25c487fe1570a19fe917c85ec065b0339e'/>
<id>36f8de25c487fe1570a19fe917c85ec065b0339e</id>
<content type='text'>
The warning "-Wcast-align=strict" seems useful and will be enabled
next. Fix places that currently cause the warning by using the
new macro NM_CAST_ALIGN(). This macro also nm_assert()s that the alignment
is correct.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The warning "-Wcast-align=strict" seems useful and will be enabled
next. Fix places that currently cause the warning by using the
new macro NM_CAST_ALIGN(). This macro also nm_assert()s that the alignment
is correct.
</pre>
</div>
</content>
</entry>
</feed>
