Skip to content

Commit

Permalink
Fix endianness bug when displaying rule number
Browse files Browse the repository at this point in the history
Fallout from migration to libpfctl.
  • Loading branch information
grembo committed Nov 13, 2023
1 parent 8d23909 commit bcef03b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pftop.c
Expand Up @@ -985,7 +985,7 @@ print_state(pf_state_t * s, struct sc_ent * ent)
print_fld_rate(FLD_SA, (s->creation) ?
((double)sz/s->creation) : -1);
}
print_fld_uint(FLD_RULE, ntohl(s->rule));
print_fld_uint(FLD_RULE, s->rule);
if (cachestates && ent != NULL) {
print_fld_rate(FLD_SI, ent->rate);
print_fld_rate(FLD_SP, ent->peak);
Expand Down

0 comments on commit bcef03b

Please sign in to comment.