summaryrefslogtreecommitdiffstats
path: root/sys/net/if_pfsync.h
diff options
context:
space:
mode:
authormcbride <mcbride@openbsd.org>2004-01-18 19:55:52 +0000
committermcbride <mcbride@openbsd.org>2004-01-18 19:55:52 +0000
commit94cb5eb819f7592dfc4159987d7fc9af136d76a9 (patch)
treea3b0dc663703ff5db6e21976ec4f879db14e51da /sys/net/if_pfsync.h
parenttrack interface type and baudrate as well (diff)
downloadwireguard-openbsd-94cb5eb819f7592dfc4159987d7fc9af136d76a9.tar.xz
wireguard-openbsd-94cb5eb819f7592dfc4159987d7fc9af136d76a9.zip
Port is already stored in network byte order, no need to convert.
Diffstat (limited to 'sys/net/if_pfsync.h')
-rw-r--r--sys/net/if_pfsync.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_pfsync.h b/sys/net/if_pfsync.h
index 221cd93f537..136802089ad 100644
--- a/sys/net/if_pfsync.h
+++ b/sys/net/if_pfsync.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.h,v 1.8 2003/12/31 11:18:25 cedric Exp $ */
+/* $OpenBSD: if_pfsync.h,v 1.9 2004/01/18 19:55:52 mcbride Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -219,12 +219,12 @@ struct pfsyncreq {
#define pf_state_host_hton(s,d) do { \
bcopy(&(s)->addr, &(d)->addr, sizeof((d)->addr)); \
- (d)->port = htons((s)->port); \
+ (d)->port = (s)->port; \
} while (0)
#define pf_state_host_ntoh(s,d) do { \
bcopy(&(s)->addr, &(d)->addr, sizeof((d)->addr)); \
- (d)->port = ntohs((s)->port); \
+ (d)->port = (s)->port; \
} while (0)
#ifdef _KERNEL