mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343530
@ -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