HomeFreeBSD

jail: Correctly access IPv[46] addresses of prison_ip

Description

jail: Correctly access IPv[46] addresses of prison_ip

  • Fix wrong IPv[46] addresses inherited from parent jail
  • Properly restrict the child jail's IPv[46] addresses

Reviewed by: melifaro, glebius
Approved by: kp (mentor)
Fixes: eb8dcdeac22d jail: network epoch protection for IP address lists
Differential Revision: https://reviews.freebsd.org/D37871
Differential Revision: https://reviews.freebsd.org/D37872