diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-04-24 16:59:54 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-04-24 17:00:05 +0200 |
commit | 144e8ff010ea0a7ee8694812ce03925ffaeb4e96 (patch) | |
tree | c097d351431e0d19d3d9dad9600a68102e11d6ca /package/busybox/patches | |
parent | 7c1818f23df85ea497c3bd0c4f00fcc18bb32fbb (diff) |
fix busybox ip for musl mips64 n64 big endian
Diffstat (limited to 'package/busybox/patches')
-rw-r--r-- | package/busybox/patches/012-msghdr.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/package/busybox/patches/012-msghdr.patch b/package/busybox/patches/012-msghdr.patch new file mode 100644 index 000000000..c34a4d4fc --- /dev/null +++ b/package/busybox/patches/012-msghdr.patch @@ -0,0 +1,50 @@ +Patch from nsz via #musl +Fixes mips64 big endian n64 issue with ip + +--- busybox-1.24.2.orig/networking/libiproute/libnetlink.c ++++ busybox-1.24.2/networking/libiproute/libnetlink.c +@@ -72,10 +72,10 @@ + struct sockaddr_nl nladdr; + struct iovec iov[2] = { { &nlh, sizeof(nlh) }, { req, len } }; + struct msghdr msg = { +- (void*)&nladdr, sizeof(nladdr), +- iov, 2, +- NULL, 0, +- 0 ++ .msg_name = (void*)&nladdr, .msg_namelen = sizeof(nladdr), ++ .msg_iov = iov, .msg_iovlen = 2, ++ .msg_control = NULL, .msg_controllen = 0, ++ .msg_flags = 0 + }; + + memset(&nladdr, 0, sizeof(nladdr)); +@@ -106,10 +106,10 @@ + struct nlmsghdr *h; + + struct msghdr msg = { +- (void*)&nladdr, sizeof(nladdr), +- &iov, 1, +- NULL, 0, +- 0 ++ .msg_name = (void*)&nladdr, .msg_namelen = sizeof(nladdr), ++ .msg_iov = &iov, .msg_iovlen = 1, ++ .msg_control = NULL, .msg_controllen = 0, ++ .msg_flags = 0 + }; + + status = recvmsg(rth->fd, &msg, 0); +@@ -212,10 +212,10 @@ + struct iovec iov = { (void*)n, n->nlmsg_len }; + char *buf = xmalloc(8*1024); /* avoid big stack buffer */ + struct msghdr msg = { +- (void*)&nladdr, sizeof(nladdr), +- &iov, 1, +- NULL, 0, +- 0 ++ .msg_name = (void*)&nladdr, .msg_namelen = sizeof(nladdr), ++ .msg_iov = &iov, .msg_iovlen = 1, ++ .msg_control = NULL, .msg_controllen = 0, ++ .msg_flags = 0 + }; + + memset(&nladdr, 0, sizeof(nladdr)); |