summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-07-10 07:55:06 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-07-10 07:55:06 +0000
commit46b16c0d26d9dd0dee09cfd96907ef2d7bd45a93 (patch)
tree9f681c049901e5dc4f2d4cf09d589ad2df63fa82
parent54e15841f66052848dd76b5683f09813a9014aca (diff)
htonl() for null.null_family, ok niels@, ho@
-rw-r--r--sbin/isakmpd/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/log.c b/sbin/isakmpd/log.c
index d30b1489d05..7a3537c66d0 100644
--- a/sbin/isakmpd/log.c
+++ b/sbin/isakmpd/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.18 2001/04/15 16:09:16 ho Exp $ */
+/* $OpenBSD: log.c,v 1.19 2001/07/10 07:55:05 markus Exp $ */
/* $EOM: log.c,v 1.30 2000/09/29 08:19:23 niklas Exp $ */
/*
@@ -401,7 +401,7 @@ log_packet_init (char *newname)
/* prep dummy header prepended to each packet */
hdr = (struct packhdr *)pack;
- hdr->null.null_family = AF_INET;
+ hdr->null.null_family = htonl(AF_INET);
hdr->ip.ip_v = 0x4;
hdr->ip.ip_hl = 0x5;
hdr->ip.ip_p = IPPROTO_UDP;