mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 08:20:16 +00:00
af-byteorder-bis-20070307
everyone wants AF in host order
This commit is contained in:
parent
5332348bdf
commit
fc36880fed
@ -3680,11 +3680,7 @@ afsmon_execute()
|
||||
}
|
||||
strncpy(curr_FS->hostName, he->h_name, HOST_NAME_LEN); /* complete name */
|
||||
memcpy(&(curr_skt->sin_addr.s_addr), he->h_addr, 4);
|
||||
#if defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
|
||||
curr_skt->sin_family = AF_INET; /*Internet family */
|
||||
#else
|
||||
curr_skt->sin_family = htons(AF_INET); /*Internet family */
|
||||
#endif
|
||||
curr_skt->sin_port = htons(7000); /*FileServer port */
|
||||
#ifdef STRUCT_SOCKADDR_HAS_SA_LEN
|
||||
curr_skt->sin_len = sizeof(struct sockaddr_in);
|
||||
|
Loading…
Reference in New Issue
Block a user