mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-06 13:09:50 +00:00
Print pfsync interface status if either syncpeer or syncdev is configured.
This commit is contained in:
parent
a7cbec4448
commit
11c4984f64
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159336
@ -173,13 +173,18 @@ pfsync_status(int s)
|
||||
if (ioctl(s, SIOCGETPFSYNC, (caddr_t)&ifr) == -1)
|
||||
return;
|
||||
|
||||
if (preq.pfsyncr_syncdev[0] != '\0') {
|
||||
printf("\tpfsync: syncdev: %s ", preq.pfsyncr_syncdev);
|
||||
if (preq.pfsyncr_syncpeer.s_addr != 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)
|
||||
printf("\t");
|
||||
|
||||
if (preq.pfsyncr_syncdev[0] != '\0')
|
||||
printf("pfsync: syncdev: %s ", preq.pfsyncr_syncdev);
|
||||
if (preq.pfsyncr_syncpeer.s_addr != 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)
|
||||
printf("maxupd: %d\n", preq.pfsyncr_maxupdates);
|
||||
}
|
||||
}
|
||||
|
||||
static struct cmd pfsync_cmds[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user