[OpenWrt-Devel] [PATCH] libubus: use network order in ubus message header fields

Felix Fietkau nbd at openwrt.org
Sun Feb 14 15:59:17 EST 2016

On 2016-02-14 21:23, Eyal Birger wrote:
> Changing the ubus message header fields from 'host' order to 'network' order
> allows passing ubus messages between hosts with different endianity.
> Example use (creating a ubus proxy):
> on host A (e.g. big endian router already running ubusd), run:
> $ socat TCP-LISTEN:5699,fork UNIX:/var/run/ubus.sock &
> On host B (e.g. little endian development PC) run:
> $ socat UNIX-LISTEN:/var/run/ubus.sock,fork TCP:<host A IP>:5699 &
> Now ubus applications can be run on host B and seamlessly interact with ubus
> applications on host A.
> Signed-off-by: Eyal Birger <eyal.birger at gmail.com>
This is incomplete, since it only touches libubus, not ubusd itself.
Please add the missing changes to ubusd and send a new patch.


- Felix
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list