jail: Fix output of IPv[46] addresses of DDB show prison
Reviewed by: melifaro, jamie
Approved by: kp (mentor)
Fixes: eb8dcdeac2
jail: network epoch protection for IP address lists
Differential Revision: https://reviews.freebsd.org/D37732
This commit is contained in:
parent
ab591c874b
commit
21ad3e27fa
@ -4919,7 +4919,7 @@ db_show_prison(struct prison *pr)
|
||||
db_printf(" %s %s\n",
|
||||
ii == 0 ? "ip4.addr =" : " ",
|
||||
inet_ntoa_r(
|
||||
*(const struct in_addr *)PR_IP(pr, ii),
|
||||
*(const struct in_addr *)PR_IP(pr->pr_addrs[af], ii),
|
||||
ip4buf));
|
||||
}
|
||||
#endif
|
||||
@ -4932,7 +4932,7 @@ db_show_prison(struct prison *pr)
|
||||
db_printf(" %s %s\n",
|
||||
ii == 0 ? "ip6.addr =" : " ",
|
||||
ip6_sprintf(ip6buf,
|
||||
(const struct in6_addr *)PR_IP(pr, ii)));
|
||||
(const struct in6_addr *)PR_IP(pr->pr_addrs[af], ii)));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user