ifconfig: fix endianness bug displaying pfsync interfaces
Reviewed by: kp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D19005
This commit is contained in:
parent
8fc2164b47
commit
fbf997c5eb
@ -195,16 +195,16 @@ pfsync_status(int s)
|
||||
return;
|
||||
|
||||
if (preq.pfsyncr_syncdev[0] != '\0' ||
|
||||
preq.pfsyncr_syncpeer.s_addr != INADDR_PFSYNC_GROUP)
|
||||
preq.pfsyncr_syncpeer.s_addr != htonl(INADDR_PFSYNC_GROUP))
|
||||
printf("\t");
|
||||
|
||||
if (preq.pfsyncr_syncdev[0] != '\0')
|
||||
printf("pfsync: syncdev: %s ", preq.pfsyncr_syncdev);
|
||||
if (preq.pfsyncr_syncpeer.s_addr != INADDR_PFSYNC_GROUP)
|
||||
if (preq.pfsyncr_syncpeer.s_addr != htonl(INADDR_PFSYNC_GROUP))
|
||||
printf("syncpeer: %s ", inet_ntoa(preq.pfsyncr_syncpeer));
|
||||
|
||||
if (preq.pfsyncr_syncdev[0] != '\0' ||
|
||||
preq.pfsyncr_syncpeer.s_addr != INADDR_PFSYNC_GROUP) {
|
||||
preq.pfsyncr_syncpeer.s_addr != htonl(INADDR_PFSYNC_GROUP)) {
|
||||
printf("maxupd: %d ", preq.pfsyncr_maxupdates);
|
||||
printf("defer: %s\n", preq.pfsyncr_defer ? "on" : "off");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user