summaryrefslogtreecommitdiff
path: root/sys/net/pfkeyv2.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-11-29 21:42:21 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-11-29 21:42:21 +0000
commit718af260a063ca6907f88fa37aafc83ecb539ed6 (patch)
treef53bb9e7a6a45db061ba70c6db3dee96e233b55f /sys/net/pfkeyv2.c
parent5b4eeca7ef99173c1659fffcdb71a19f41bb6f5d (diff)
tiny knf, no binary change.
ok otto jsg henning pat markus deraadt fgs
Diffstat (limited to 'sys/net/pfkeyv2.c')
-rw-r--r--sys/net/pfkeyv2.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/net/pfkeyv2.c b/sys/net/pfkeyv2.c
index 1e6b8a75395..dadea771785 100644
--- a/sys/net/pfkeyv2.c
+++ b/sys/net/pfkeyv2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2.c,v 1.94 2004/11/26 18:02:22 markus Exp $ */
+/* $OpenBSD: pfkeyv2.c,v 1.95 2004/11/29 21:42:20 hshoexer Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) 17 January 1995
@@ -126,7 +126,8 @@ extern struct pool ipsec_policy_pool;
* chain.
*/
int
-pfdatatopacket(void *data, int len, struct mbuf **packet) {
+pfdatatopacket(void *data, int len, struct mbuf **packet)
+{
if (!(*packet = m_devget(data, len, 0, NULL, NULL)))
return (ENOMEM);
return (0);
@@ -136,7 +137,8 @@ pfdatatopacket(void *data, int len, struct mbuf **packet) {
* Create a new PF_KEYv2 socket.
*/
int
-pfkeyv2_create(struct socket *socket) {
+pfkeyv2_create(struct socket *socket)
+{
struct pfkeyv2_socket *pfkeyv2_socket;
if (!(pfkeyv2_socket = malloc(sizeof(struct pfkeyv2_socket),
@@ -1788,8 +1790,7 @@ splxret:
*/
int
pfkeyv2_acquire(struct ipsec_policy *ipo, union sockaddr_union *gw,
- union sockaddr_union *laddr, u_int32_t *seq,
- struct sockaddr_encap *ddst)
+ union sockaddr_union *laddr, u_int32_t *seq, struct sockaddr_encap *ddst)
{
void *p, *headers[SADB_EXT_MAX + 1], *buffer = NULL;
struct sadb_ident *srcid, *dstid;