summaryrefslogtreecommitdiff
path: root/sbin/ipsecadm/pfkdump.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-10 16:41:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-10 16:41:30 +0000
commitbe4ae4c8fa78a60c8d5ad177c8476e798e3787a8 (patch)
tree9147be0ccddd92a0298fb419d2da81bafb8ec191 /sbin/ipsecadm/pfkdump.c
parent2dab5eb58473c9874077ac55ecd8e4dc7c8d4354 (diff)
boring cleanups
Diffstat (limited to 'sbin/ipsecadm/pfkdump.c')
-rw-r--r--sbin/ipsecadm/pfkdump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/ipsecadm/pfkdump.c b/sbin/ipsecadm/pfkdump.c
index 1a7f446c4b7..e769b19564c 100644
--- a/sbin/ipsecadm/pfkdump.c
+++ b/sbin/ipsecadm/pfkdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkdump.c,v 1.3 2003/03/14 04:58:11 margarida Exp $ */
+/* $OpenBSD: pfkdump.c,v 1.4 2003/06/10 16:41:28 deraadt Exp $ */
/*
* Copyright (c) 2003 Markus Friedl. All rights reserved.
@@ -280,11 +280,11 @@ print_sa(struct sadb_ext *ext, struct sadb_msg *msg)
if (msg->sadb_msg_satype == SADB_X_SATYPE_IPCOMP)
printf("cpi 0x%8.8x comp %s\n",
- ntohl(sa->sadb_sa_spi),
+ ntohl(sa->sadb_sa_spi),
lookup_name(comp_types, sa->sadb_sa_encrypt));
else
printf("spi 0x%8.8x auth %s enc %s\n",
- ntohl(sa->sadb_sa_spi),
+ ntohl(sa->sadb_sa_spi),
lookup_name(auth_types, sa->sadb_sa_auth),
lookup_name(enc_types, sa->sadb_sa_encrypt));
printf("\t\tstate %s replay %u flags %u\n",
@@ -531,7 +531,7 @@ msg_send(int pfkey, u_int8_t satype, u_int8_t mtype)
msg.sadb_msg_seq = ++seq;
msg.sadb_msg_satype = satype;
msg.sadb_msg_type = mtype;
- msg.sadb_msg_len = sizeof(msg) / PFKEY2_CHUNK;
+ msg.sadb_msg_len = sizeof(msg) / PFKEY2_CHUNK;
if (write(pfkey, &msg, sizeof(msg)) != sizeof(msg))
err(1, "write");
}