summaryrefslogtreecommitdiff
path: root/sys/net/pf.c
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2001-06-26 15:35:42 +0000
committerNiels Provos <provos@cvs.openbsd.org>2001-06-26 15:35:42 +0000
commitca0b8f2a9da354623492e107393cbfe93f7af733 (patch)
tree9e43aabef67a0ddf54d383b9927eedb9352e089e /sys/net/pf.c
parent2f9185a93500ad1b59e24876d33550adfaf93178 (diff)
forgot htons
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r--sys/net/pf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index dd6291c46a6..2fae9bfa6b0 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.51 2001/06/26 15:33:00 provos Exp $ */
+/* $OpenBSD: pf.c,v 1.52 2001/06/26 15:35:41 provos Exp $ */
/*
* Copyright (c) 2001, Daniel Hartmeier
@@ -376,9 +376,10 @@ pflog_packet(struct mbuf *m, int af, u_short dir, u_short reason,
else
strcpy(hdr.ifname, "unkn");
+ hdr.rnr = htons(nr);
+ hdr.reason = htons(reason);
hdr.dir = htons(dir);
hdr.action = htons(rm->action);
- hdr.rnr = htonl(nr);
m1.m_next = m;
m1.m_len = PFLOG_HDRLEN;