summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/sysdep/netbsd/sysdep.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2001-10-26 12:23:47 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2001-10-26 12:23:47 +0000
commit53ad6c2a25ef0c135d429a16bb3f7ddf0527fbb0 (patch)
treee34407a222e6571e649498afbbcc2def7e0d2ca5 /sbin/isakmpd/sysdep/netbsd/sysdep.c
parenteb46b9853439c27012a22a86f3d9139930a9e87a (diff)
Add sysdep_sa_len function.
Diffstat (limited to 'sbin/isakmpd/sysdep/netbsd/sysdep.c')
-rw-r--r--sbin/isakmpd/sysdep/netbsd/sysdep.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sbin/isakmpd/sysdep/netbsd/sysdep.c b/sbin/isakmpd/sysdep/netbsd/sysdep.c
index 87e6c47b3c0..bd84b431eb6 100644
--- a/sbin/isakmpd/sysdep/netbsd/sysdep.c
+++ b/sbin/isakmpd/sysdep/netbsd/sysdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysdep.c,v 1.10 2001/08/13 13:23:15 itojun Exp $ */
+/* $OpenBSD: sysdep.c,v 1.11 2001/10/26 12:23:45 ho Exp $ */
/*
* Copyright (c) 1998, 1999 Niklas Hallqvist. All rights reserved.
@@ -70,6 +70,13 @@ sysdep_progname ()
return __progname;
}
+/* Return the length of the sockaddr struct. */
+u_int8_t
+sysdep_sa_len (struct sockaddr *sa)
+{
+ return sa->sa_len;
+}
+
/* As regress/ use this file I protect the sysdep_app_* stuff like this. */
#ifdef NEED_SYSDEP_APP
/*