HomeFreeBSD

ipfilter: Fix struct ifnet pointer type

Description

ipfilter: Fix struct ifnet pointer type

The fr_info struct contains a summary of a packet. One of its fields
is a pointer to the ifnet struct the packet arrived on. It is pointed
to by a void* because ipfilter supports multiple O/Ses. Unfortunately
this makes it difficult it examine with DTrace. Defining fin_ifp as a
pointer to an ifnet struct makes the struct it points to using a DTrace
script possible.

(cherry picked from commit 8f19f3d31a7224c502c36dd16f1321b802e4da60)

Details

Provenance
cyAuthored on Dec 12 2021, 11:57 PM
Parents
rGa9e7316c2402: ipfilter fil.c: Fix two typos in comments
Branches
Unknown
Tags
Unknown