diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2001-06-26 15:35:42 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2001-06-26 15:35:42 +0000 |
commit | ca0b8f2a9da354623492e107393cbfe93f7af733 (patch) | |
tree | 9e43aabef67a0ddf54d383b9927eedb9352e089e /sys/net/pf.c | |
parent | 2f9185a93500ad1b59e24876d33550adfaf93178 (diff) |
forgot htons
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r-- | sys/net/pf.c | 5 |
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; |