pex: fix endian issues on config transfer
authorFelix Fietkau <nbd@nbd.name>
Tue, 19 Mar 2024 08:57:36 +0000 (09:57 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 19 Mar 2024 08:59:32 +0000 (09:59 +0100)
commit203c88857354e09dc2c9f5b57f0f66ac1f76a16d
tree346b6c024ed6a41367fc8d397d5f8bede0a4f8ba
parent12ac684ee22aff0ab806c5f6e8031f844cd918f8
pex: fix endian issues on config transfer

Fixes transferring network config between big-endian and little-endian devices.
Please note that on little-endian this makes patched and unpatched devices
incompatible to each other, since protocol fields are changed to big-endian.

Reported-by: Paul Spooren <mail@aparcar.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
pex-msg.c