<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/NetworkManager.git/src/nmcli/devices.c, branch fix-eBPF</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>cli: cleanup connecting state change signal</title>
<updated>2022-10-28T06:52:08+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2022-10-28T06:50:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=0622ed7051e85ca47a369d564172448ee16ca70c'/>
<id>0622ed7051e85ca47a369d564172448ee16ca70c</id>
<content type='text'>
It seems really ugly, to pass a callback function of wrong
signature. Granted, it probably works due to the C calling
convention, but it seems odd.

Use callbacks of the proper type instead. Then we also don'
need g_signal_connect_swapped().

While at it, rename. "connected_state_cb()" seems a bad name.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It seems really ugly, to pass a callback function of wrong
signature. Granted, it probably works due to the C calling
convention, but it seems odd.

Use callbacks of the proper type instead. Then we also don'
need g_signal_connect_swapped().

While at it, rename. "connected_state_cb()" seems a bad name.
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli: fix crash in "nmcli device monitor"</title>
<updated>2022-10-19T14:11:55+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2022-10-19T09:41:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=40897db05614df8ef3cf0fd3dc407fabcca5536e'/>
<id>40897db05614df8ef3cf0fd3dc407fabcca5536e</id>
<content type='text'>
Fix the following crash:

  $ nmcli device monitor a
  Error: Device 'a' not found.
  Segmentation fault (core dumped)

Found by coverity:

  1. NetworkManager-1.41.3/src/nmcli/devices.c:0: scope_hint: In function 'do_devices_monitor'
  2. NetworkManager-1.41.3/src/nmcli/devices.c:2932:28: warning[-Wanalyzer-null-dereference]: dereference of NULL 'devices'
     2930|       }
     2931|
     2932|-&gt;     for (i = 0; i &lt; devices-&gt;len; i++)
     2933|           device_watch(nmc, g_ptr_array_index(devices, i));
     2934|

Fixes: 2074b2897627 ('nmcli/devices: return GPtrArray instead of GSList from get_device_list()')
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the following crash:

  $ nmcli device monitor a
  Error: Device 'a' not found.
  Segmentation fault (core dumped)

Found by coverity:

  1. NetworkManager-1.41.3/src/nmcli/devices.c:0: scope_hint: In function 'do_devices_monitor'
  2. NetworkManager-1.41.3/src/nmcli/devices.c:2932:28: warning[-Wanalyzer-null-dereference]: dereference of NULL 'devices'
     2930|       }
     2931|
     2932|-&gt;     for (i = 0; i &lt; devices-&gt;len; i++)
     2933|           device_watch(nmc, g_ptr_array_index(devices, i));
     2934|

Fixes: 2074b2897627 ('nmcli/devices: return GPtrArray instead of GSList from get_device_list()')
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli: don't show state-reason for "nmcli device connect" errors</title>
<updated>2022-10-04T08:06:54+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2022-10-03T11:51:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=1a77108dcb68b156682ad776156b4e12f3c37bb7'/>
<id>1a77108dcb68b156682ad776156b4e12f3c37bb7</id>
<content type='text'>
It's confusing to show a state-reason number different from nmcli
return values.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's confusing to show a state-reason number different from nmcli
return values.
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli: fix return code on "nmcli device connect" error</title>
<updated>2022-10-04T08:06:54+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2022-10-03T11:46:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=5cf9395b94f68c701101207a1eb964eb565be55d'/>
<id>5cf9395b94f68c701101207a1eb964eb565be55d</id>
<content type='text'>
Before:
  $ nmcli device connect veth0; echo $?
  Error: Connection activation failed: (5) IP configuration could not be reserved (no available address, timeout, etc.).
  0

After
  $ nmcli device connect veth0; echo $?
  Error: Connection activation failed: (5) IP configuration could not be reserved (no available address, timeout, etc.).
  4

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/902
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before:
  $ nmcli device connect veth0; echo $?
  Error: Connection activation failed: (5) IP configuration could not be reserved (no available address, timeout, etc.).
  0

After
  $ nmcli device connect veth0; echo $?
  Error: Connection activation failed: (5) IP configuration could not be reserved (no available address, timeout, etc.).
  4

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/902
</pre>
</div>
</content>
</entry>
<entry>
<title>all: use nm_g_array_{index,first,last,index_p}() instead of g_array_index()</title>
<updated>2022-09-15T10:39:07+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2022-09-08T10:05:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=ffd8baa49fd5310501cacabb939445b0aef900cf'/>
<id>ffd8baa49fd5310501cacabb939445b0aef900cf</id>
<content type='text'>
These variants provide additional nm_assert() checks, and are thus
preferable.

Note that we cannot just blindly replace &amp;g_array_index() with
&amp;nm_g_array_index(), because the latter would not allow getting a
pointer at index [arr-&gt;len]. That might be a valid (though uncommon)
usecase. The correct replacement of &amp;g_array_index() is thus
nm_g_array_index_p().

I checked the code manually and replaced uses of nm_g_array_index_p()
with &amp;nm_g_array_index(), if that was a safe thing to do. The latter
seems preferable, because it is familar to &amp;g_array_index().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These variants provide additional nm_assert() checks, and are thus
preferable.

Note that we cannot just blindly replace &amp;g_array_index() with
&amp;nm_g_array_index(), because the latter would not allow getting a
pointer at index [arr-&gt;len]. That might be a valid (though uncommon)
usecase. The correct replacement of &amp;g_array_index() is thus
nm_g_array_index_p().

I checked the code manually and replaced uses of nm_g_array_index_p()
with &amp;nm_g_array_index(), if that was a safe thing to do. The latter
seems preferable, because it is familar to &amp;g_array_index().
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli: don't translate "%s"</title>
<updated>2022-09-01T11:07:23+00:00</updated>
<author>
<name>Lubomir Rintel</name>
<email>lkundrak@v3.sk</email>
</author>
<published>2022-08-26T10:52:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=222bd85fdc277e586ff688e085f9a86e4ac9f768'/>
<id>222bd85fdc277e586ff688e085f9a86e4ac9f768</id>
<content type='text'>
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1354
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1354
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli/devices: fix a crash</title>
<updated>2022-06-23T13:12:19+00:00</updated>
<author>
<name>Lubomir Rintel</name>
<email>lkundrak@v3.sk</email>
</author>
<published>2022-06-23T13:12:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=0e2ddfd071e7be9c400e435ac310468002ef4b70'/>
<id>0e2ddfd071e7be9c400e435ac310468002ef4b70</id>
<content type='text'>
This is not good:

  $ nmcli device delete nm-bond
  Segmentation fault (core dumped)

Fixes: 5f9d2927ed02 ("nmcli/devices: use GPtrArray from get_device_list() directly")
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is not good:

  $ nmcli device delete nm-bond
  Segmentation fault (core dumped)

Fixes: 5f9d2927ed02 ("nmcli/devices: use GPtrArray from get_device_list() directly")
</pre>
</div>
</content>
</entry>
<entry>
<title>merge: branch 'lr/nmcli-checkpoint'</title>
<updated>2022-06-23T09:49:48+00:00</updated>
<author>
<name>Lubomir Rintel</name>
<email>lkundrak@v3.sk</email>
</author>
<published>2022-06-23T09:49:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=9f9c82f39b08f54d5d73f3d3f5a9939818b2cc62'/>
<id>9f9c82f39b08f54d5d73f3d3f5a9939818b2cc62</id>
<content type='text'>
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1207
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1207
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli: distinguish OWE-TM from OWE BSS</title>
<updated>2022-06-17T17:50:40+00:00</updated>
<author>
<name>David Bauer</name>
<email>mail@david-bauer.net</email>
</author>
<published>2022-06-16T17:59:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=02e35f5b205445435f293eae959b7a4435b7d807'/>
<id>02e35f5b205445435f293eae959b7a4435b7d807</id>
<content type='text'>
Distinguish a OWE-TM enabled BSS (which itself is unencrypted) from the
OWE BSS actually employing encryption.

Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Distinguish a OWE-TM enabled BSS (which itself is unencrypted) from the
OWE BSS actually employing encryption.

Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli/devices: add "checkpoint" command</title>
<updated>2022-06-15T10:26:08+00:00</updated>
<author>
<name>Lubomir Rintel</name>
<email>lkundrak@v3.sk</email>
</author>
<published>2022-05-04T07:19:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=1c17e556276ee786da374684b0752b3128e16938'/>
<id>1c17e556276ee786da374684b0752b3128e16938</id>
<content type='text'>
This is an interface to the Checkpoint/Restore functionality that's
available for quite some time. It runs a command with a checkpoint taken
and rolls back unless success is confirmed before the checkpoint times
out:

  $ nmcli dev checkpoint eth0 -- nmcli dev dis eth0
  Device 'eth0' successfully disconnected.
  Type "Yes" to commit the changes: No
  Checkpoint was removed.

The details about how it's used are documented in nmcli(1) and
nmcli-examples(7).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is an interface to the Checkpoint/Restore functionality that's
available for quite some time. It runs a command with a checkpoint taken
and rolls back unless success is confirmed before the checkpoint times
out:

  $ nmcli dev checkpoint eth0 -- nmcli dev dis eth0
  Device 'eth0' successfully disconnected.
  Type "Yes" to commit the changes: No
  Checkpoint was removed.

The details about how it's used are documented in nmcli(1) and
nmcli-examples(7).
</pre>
</div>
</content>
</entry>
</feed>
