D54763 implements a workaround for ipfw KBI incompatibility introduced in D46183. It works fine for OS upgrades from 14.4 to 15.x but does not help with running an 14.4 jail with 15.0 kernel as jail initialization overwrites OS version with an older one.
This differential introduces a more confident detection through IP_FW_DUMP_SOPTCODES and IP_FW_XGET sockopts version.
Report 32-bit KBI for osreldate equal or greater than 1500034. For lower values, jailed status must be checked to make sure getosreldate() returned a real value as jail init can be instructed to override this value (see jail(8)). In case we're in a jail, use ipfw socket to detect 32-bit KBI using ophandler probes.