[329] in bug-owl
port number displayed is byteswapped on little-endian architectures
daemon@ATHENA.MIT.EDU (Arun A Tharuvai)
Fri Apr 9 20:55:58 2004
Date: Fri, 9 Apr 2004 20:53:23 -0400 (EDT)
From: Arun A Tharuvai <aatharuv@MIT.EDU>
To: bug-owl@MIT.EDU
cc: aatharuv@MIT.EDU
Message-ID: <Pine.GSO.4.55L.0404091827270.7763@multics.mit.edu>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-983176829-1081558403=:7763"
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---559023410-983176829-1081558403=:7763
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hello,
On x86, and presumably other little-endian architectures, owl displays an
ascii representation of the port, before the port is converted to a
little-endian number. This is because Znotice_t.z_port is always in
network byte order. Here's a patch, that causes the port to be displayed
correctly on both big-endian and little-endian architectures.
Arun
---559023410-983176829-1081558403=:7763
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="owl-le-port.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.4.55L.0404092053230.7763@multics.mit.edu>
Content-Description:
Content-Disposition: attachment; filename="owl-le-port.patch"
SW5kZXg6IGZ1bmN0aW9ucy5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpS
Q1MgZmlsZTogL21pdC9rdG9vbHMvc3JjL293bC9yZXBvc2l0b3J5L293bC9m
dW5jdGlvbnMuYyx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTIwDQpkaWZm
IC11IC11IC1yMS4xMjAgZnVuY3Rpb25zLmMNCi0tLSBmdW5jdGlvbnMuYwky
IE1hciAyMDA0IDAzOjUwOjIyIC0wMDAwCTEuMTIwDQorKysgZnVuY3Rpb25z
LmMJMTAgQXByIDIwMDQgMDA6MzQ6NTAgLTAwMDANCkBAIC05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