diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2009-09-16 12:28:20 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2009-09-16 12:28:20 +0000 |
commit | 040854e58efbc3bb4fcf77070c0857e4ba32bd5a (patch) | |
tree | 2509b6d8598556762c2298cfbe25b0fe86fd7c1c /sys | |
parent | 36f86bc096e12bb2be63e1e6bdf72d2914882bcc (diff) |
style: in pf_test_state_other, fix indentation, kill excessive newlines,
add break in the last case block
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/pf.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 1201133eff9..f8994dc86ec 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.661 2009/09/16 12:26:55 henning Exp $ */ +/* $OpenBSD: pf.c,v 1.662 2009/09/16 12:28:19 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -4703,23 +4703,20 @@ pf_test_state_other(struct pf_state **state, int direction, struct pfi_kif *kif, pd->ip_sum, nk->addr[pd->sidx].v4.s_addr, 0); - - if (PF_ANEQ(pd->dst, &nk->addr[pd->didx], AF_INET)) pf_change_a(&pd->dst->v4.s_addr, pd->ip_sum, nk->addr[pd->didx].v4.s_addr, 0); - - break; + break; #endif /* INET */ #ifdef INET6 case AF_INET6: if (PF_ANEQ(pd->src, &nk->addr[pd->sidx], AF_INET6)) PF_ACPY(pd->src, &nk->addr[pd->sidx], pd->af); - if (PF_ANEQ(pd->dst, &nk->addr[pd->didx], AF_INET6)) PF_ACPY(pd->dst, &nk->addr[pd->didx], pd->af); + break; #endif /* INET6 */ } } |