[systemd-devel] libsystemd-network: UDP checksum on BE machines

Tom Gundersen teg at jklm.no
Tue Jun 17 00:01:14 PDT 2014


On Sun, Jun 15, 2014 at 8:15 PM, Thomas Ritter <th.ritter at gmx.at> wrote:
> Dear systemd-networkd developers,
>
> I think there is an issue with the generation of the UDP checksums on
> big-endian systems, which I already posted as an issue to the bugtracker
> (https://bugs.freedesktop.org/show_bug.cgi?id=78082) but since there was not
> reaction I'll give it a try in this List.
>
> I run the latest systemd on x86 (LE) and powerpc (BE) machines, and the
> powerpc never aquired a lease - checking with wireshark it complains on
> incorrect UDP checksums.
>
> Changing the checksum calculation to the code it borrowed from busybox (see
> attachment) fixed this issue for me.
> Since the code from busybox is less efficient I guess it is not a direct
> replacement, but it would be great having systemd-networkd also running on
> BE systems.

This has now been fixed in git.

Thanks!

Tom


More information about the systemd-devel mailing list