diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-12-23 18:54:00 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-12-23 18:54:00 +0000 |
commit | 5df6df02baf829faaa56b2f656a9a3732c24e8ad (patch) | |
tree | 85d04c3f0e6e93dbda84a6f3f93b83a52f693de5 /sys | |
parent | 05de42817bf38cda758c41fb6198f1b34882253f (diff) |
no need to htons the port, it's already in net order, since we swapped it back in tcpdump, worked fine (; from bdd@ieee.org
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_pfsync.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index dd761e56497..a14bd82f3b3 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.3 2002/12/20 22:13:27 mickey Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.4 2002/12/23 18:53:59 mickey Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -270,9 +270,9 @@ pfsync_pack_state(action, st) h->count++; bzero(sp, sizeof(*sp)); - bcopy(&st->lan, &sp->lan, sizeof(sp->lan)); HTONS(sp->lan.port); - bcopy(&st->gwy, &sp->gwy, sizeof(sp->gwy)); HTONS(sp->gwy.port); - bcopy(&st->ext, &sp->ext, sizeof(sp->ext)); HTONS(sp->ext.port); + bcopy(&st->lan, &sp->lan, sizeof(sp->lan)); + bcopy(&st->gwy, &sp->gwy, sizeof(sp->gwy)); + bcopy(&st->ext, &sp->ext, sizeof(sp->ext)); pf_state_peer_hton(&st->src, &sp->src); pf_state_peer_hton(&st->dst, &sp->dst); |