Files
systemd/src
Yu Watanabe d8af104fb0 ethtool-util: fix setting advertising link modes
Fixes a regression caused by d307410327.

The link_mode_masks flex array in struct ethtool_link_settings contains
three packed arrays, and the length of each array is given by
link_mode_masks_nwords field:
```
        __u32   link_mode_masks[];
        /* layout of link_mode_masks fields:
         * __u32 map_supported[link_mode_masks_nwords];
         * __u32 map_advertising[link_mode_masks_nwords];
         * __u32 map_lp_advertising[link_mode_masks_nwords];
         */
```
Hence, we cannot use the received data as is through the union, but need
to shift the array to make each map accessible through the union.
2025-09-04 12:57:10 +02:00
..
…
2025-07-12 21:19:01 +09:00
2025-07-26 05:00:02 +09:00
…
2025-08-20 13:19:51 +01:00
2025-08-08 19:39:31 +09:00
2025-07-03 17:43:01 +02:00
2025-09-04 06:52:17 +09:00
2025-07-14 13:07:29 +01:00
2025-08-26 06:00:03 +09:00
2025-07-12 21:19:01 +09:00
2025-08-18 15:37:43 +09:00