From 5df6df02baf829faaa56b2f656a9a3732c24e8ad Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Mon, 23 Dec 2002 18:54:00 +0000 Subject: 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 --- sys/net/if_pfsync.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') 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); -- cgit v1.2.3