ipfw.d: Add required dependency declarations

ipfw.d requires definitions of, at least, in_addr_t and struct ip6_addr,
which it must obtain from CTF info.  This is found by looking at
$(sysctl -n kern.bootfile)/kernel, which might not be available in a
jail.

These depends_on declarations ensure that dtrace(1) invocations will
simply abort processing of ipfw.d if the required binaries can't be
found, rather than raising an error.

PR:		283359
MFC after:	1 week
This commit is contained in:
Mark Johnston 2024-12-16 22:09:39 +00:00
parent 266f640b38
commit b64c5a0ace

View file

@ -27,6 +27,8 @@
*/
#pragma D depends_on provider ipfw
#pragma D depends_on module kernel
#pragma D depends_on module ipfw.ko
/* ipfw_chk() return values */
#pragma D binding "1.0" IP_FW_PASS