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.

MFC after:	1 week
This commit is contained in:
Cy Schubert 2021-12-12 15:57:36 -08:00
parent 8b37048bc5
commit 8f19f3d31a

View File

@ -358,7 +358,11 @@ typedef enum ipf_cksum_e {
typedef struct fr_info {
void *fin_main_soft;
#ifdef __FreeBSD__
struct ifnet *fin_ifp; /* interface packet is `on' */
#else
void *fin_ifp; /* interface packet is `on' */
#endif
struct frentry *fin_fr; /* last matching rule */
int fin_out; /* in or out ? 1 == out, 0 == in */
fr_ip_t fin_fi; /* IP Packet summary */