summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/sysdep/freebsd
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/isakmpd/sysdep/freebsd')
-rw-r--r--sbin/isakmpd/sysdep/freebsd/sysdep.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sbin/isakmpd/sysdep/freebsd/sysdep.c b/sbin/isakmpd/sysdep/freebsd/sysdep.c
index ce2235365f0..4f853ca1774 100644
--- a/sbin/isakmpd/sysdep/freebsd/sysdep.c
+++ b/sbin/isakmpd/sysdep/freebsd/sysdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysdep.c,v 1.9 2001/08/12 12:03:02 heko Exp $ */
+/* $OpenBSD: sysdep.c,v 1.10 2001/10/26 12:23:45 ho Exp $ */
/*
* Copyright (c) 1998, 1999 Niklas Hallqvist. All rights reserved.
@@ -76,6 +76,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
/*