Add a flag to LogBuffer's for endian used
-----------------------------------------
Key: TS-1182
URL: https://issues.apache.org/jira/browse/TS-1182
Project: Traffic Server
Issue Type: Improvement
Components: Logging
Reporter: Leif Hedstrom
Fix For: 3.3.0
After discussions with amc: To support "reading" logs (either via logcat or log
collation) on a box with a different endian from where it was generated, we
need to know which endian we generated the log in. Either that, or go back and
do the htonl / ntohl conversions always. I favor the "flag", since most sane
platforms are little endian anyways (certainly all platforms we support are),
so why take the cost of the conversions if they are rarely used.
This would let us check the endian flag in e.g. the log collation server, and
in logcat like tools, and do the conversions only when necessary.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira