Set the current vnet inside the ioctl handler for ipfilter.
Without this fix, the vnet was NULL and would crash.
This fix is similar to what was done inside the ioctl handler for PF.
PR: 176992
Differential D1191
Eliminate ipfilter crash when VIMAGE is enabled in kernel • rodrigc on Nov 19 2014, 9:33 AM. Authored by Tags None Referenced Files
Subscribers
Details
Set the current vnet inside the ioctl handler for ipfilter. Without this fix, the vnet was NULL and would crash. PR: 176992 (1) Boot a kernel with "options VIMAGE" enabled echo "map lo0 from 10.0.0.0/24 to ! 10.0.0.0/24 -> 127.0.0.1/32" > /etc/ipnat.rules ; service ipnat onerestart
Diff Detail
Event TimelineComment Actions I'd argue that there is no need for the #ifs as there is no supported FreeBSD version before 8 anyway anymore. Otherwise that's ok I'd say. |