diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-06-24 13:52:51 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-06-24 13:52:51 +0000 |
commit | 40ed16b97cabe2f194df0c265683615929570102 (patch) | |
tree | 8db3c10c4b666cccf96b6d51b234d48c5fab050a | |
parent | ae0aad3cc6eaac4536aab9cff524d4e8a360d105 (diff) |
KNF
-rw-r--r-- | sys/net/pf.c | 6 | ||||
-rw-r--r-- | sys/net/pf_table.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index fbf3e7a9741..2bde791bebe 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.367 2003/06/21 09:07:01 djm Exp $ */ +/* $OpenBSD: pf.c,v 1.368 2003/06/24 13:52:50 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1102,7 +1102,7 @@ pf_send_tcp(const struct pf_rule *r, sa_family_t af, tlen = sizeof(struct tcphdr); if (mss) tlen += 4; - + switch (af) { #ifdef INET case AF_INET: @@ -3510,7 +3510,7 @@ pf_test_state_tcp(struct pf_state **state, int direction, struct ifnet *ifp, pf_print_state(*state); pf_print_flags(th->th_flags); printf(" seq=%u ack=%u len=%u ackskew=%d pkts=%d:%d\n", - seq, ack, pd->p_len, ackskew, + seq, ack, pd->p_len, ackskew, (*state)->packets[0], (*state)->packets[1]); } diff --git a/sys/net/pf_table.c b/sys/net/pf_table.c index 44525f1aa4a..2d58ad836c7 100644 --- a/sys/net/pf_table.c +++ b/sys/net/pf_table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_table.c,v 1.37 2003/06/08 10:32:35 cedric Exp $ */ +/* $OpenBSD: pf_table.c,v 1.38 2003/06/24 13:52:50 henning Exp $ */ /* * Copyright (c) 2002 Cedric Berger @@ -1557,7 +1557,7 @@ pfr_table_count(struct pfr_table *filter, int flags) return (pfr_ktable_cnt); if (filter->pfrt_ruleset[0]) { rs = pf_find_ruleset(filter->pfrt_anchor, - filter->pfrt_ruleset); + filter->pfrt_ruleset); return ((rs != NULL) ? rs->tables : -1); } if (filter->pfrt_anchor[0]) { @@ -1692,7 +1692,7 @@ pfr_create_ktable(struct pfr_table *tbl, long tzero, int attachruleset) } kt->pfrkt_rs = rs; rs->tables++; - if(rs->anchor != NULL) + if (rs->anchor != NULL) rs->anchor->tables++; } @@ -1737,7 +1737,7 @@ pfr_destroy_ktable(struct pfr_ktable *kt, int flushaddr) pfr_destroy_ktable(kt->pfrkt_shadow, flushaddr); if (kt->pfrkt_rs != NULL) { kt->pfrkt_rs->tables--; - if(kt->pfrkt_rs->anchor != NULL) + if (kt->pfrkt_rs->anchor != NULL) kt->pfrkt_rs->anchor->tables--; pf_remove_if_empty_ruleset(kt->pfrkt_rs); } |