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

Thomas Ritter th.ritter at gmx.at
Sun Jun 15 11:15:04 PDT 2014


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.

Best regards,
Thomas Ritter

-------------- next part --------------
A non-text attachment was scrubbed...
Name: systemd.diff
Type: text/x-patch
Size: 2367 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140615/40764d9a/attachment.bin>


More information about the systemd-devel mailing list