Skip to content

Commit

Permalink
pf: Add a padding to pfioc_qstats_v1 to have a different size to pfio…
Browse files Browse the repository at this point in the history
…c_qstats_v0

The struct sizes are used to generate IOCTL code numbers.
In CHERI purecap, the struct sizes of pfioc_qstats_v1 and
pfioc_qstats_v0 are identical, causing a compile error.
  • Loading branch information
RoundofThree committed Dec 29, 2024
1 parent 4d0013a commit f201118
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/net/pfvar.h
Original file line number Diff line number Diff line change
Expand Up @@ -1918,6 +1918,7 @@ struct pfioc_qstats_v1 {
* written entirely in terms of the v0 or v1 type.
*/
u_int32_t version; /* Requested version of stats struct */
void *pad;
};

/* Latest version of struct pfioc_qstats_vX */
Expand Down

0 comments on commit f201118

Please sign in to comment.