[OpenAFS-devel] AF_INET byte order
Kristen J. Webb
kwebb@teradactyl.com
Wed, 07 Mar 2007 10:12:20 -0700
This is a cryptographically signed message in MIME format.
--------------ms090505060502090108000508
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Jim,
I believe that the single line:
curr_skt->sin_family = AF_INET; /*Internet family */
Is all that you need for all OS's. That is how our code is setup
and it runs on a mixture of big/little-endian systems running
every OS we support.
Hope that helps,
Kris
Jim Rees wrote:
> The code as written is wrong. I guess I'll change it to
>
> #if defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
>
> but I wonder if it shouldn't really be
>
> #if !defined(AFS_LINUX_ENV)
>
> Comments? Which order do Solaris and AIX want?
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel
>
>
--
Mr. Kristen J. Webb
Teradactyl LLC.
PHONE: 1-505-242-1091
EMAIL: kwebb@teradactyl.com
VISIT: http://www.teradactyl.com
Home of the
True incremental Backup System
--------------ms090505060502090108000508
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIINGjCC
A2IwggLLoAMCAQICEAvaCxfBP4mOqwl0erTOLjMwDQYJKoZIhvcNAQECBQAwXzELMAkGA1UE
BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAxIFB1Ymxp
YyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk4MDUxMjAwMDAwMFoXDTA4
MDUxMjIzNTk1OVowgcwxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJp
U2lnbiBUcnVzdCBOZXR3b3JrMU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