Udebug gets the last 'yes' host in HBO, but afs_inet_ntoa wants it in
NBO. So convert it to NBO.
Change-Id: I5524d8086d5ac08875306fee923cb297c971cda8
Reviewed-on: http://gerrit.openafs.org/1549
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
udebug.syncVersion.counter = udebug.localVersion.counter;
}
- /* sockaddr is always in net-order */
+ /* XDR converts addresses for us, so all addresses are in HBO */
if (udebug.lastYesHost == 0xffffffff) {
printf("Last yes vote not cast yet \n");
} else {
diff = udebug.now - udebug.lastYesTime;
printf("Last yes vote for %s was %d secs ago (%ssync site); \n",
- afs_inet_ntoa(udebug.lastYesHost),
+ afs_inet_ntoa(htonl(udebug.lastYesHost)),
afs_cast_time_t(diff),
((udebug.lastYesState) ? "" : "not "));