Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
qemu-linux-user.14390
0108-slirp-fix-big-little-endian-convers.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0108-slirp-fix-big-little-endian-convers.patch of Package qemu-linux-user.14390
From: Samuel Thibault <samuel.thibault@ens-lyon.org> Date: Fri, 1 Mar 2019 18:23:41 -0800 Subject: slirp: fix big/little endian conversion in ident protocol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> --- Based-on: <1551476756-25749-1-git-send-email-will@wbowling.info> (cherry picked from commit 1fd71067dae501f1c78618e9583c6cc72db0cfa6) [BFR: In support of BSC#1123156] Signed-off-by: Bruce Rogers <brogers@suse.com> --- slirp/tcp_subr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slirp/tcp_subr.c b/slirp/tcp_subr.c index 90aab2fab6..86d8e6fe87 100644 --- a/slirp/tcp_subr.c +++ b/slirp/tcp_subr.c @@ -658,10 +658,12 @@ tcp_emu(struct socket *so, struct mbuf *m) tmpso->so_fport == n1) { if (getsockname(tmpso->s, (struct sockaddr *)&addr, &addrlen) == 0) - n2 = ntohs(addr.sin_port); + n2 = addr.sin_port; break; } } + NTOHS(n1); + NTOHS(n2); so_rcv->sb_cc = snprintf(so_rcv->sb_data, so_rcv->sb_datalen, "%d,%d\r\n", n1, n2);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor