summaryrefslogtreecommitdiff
path: root/net/openbgpd/files/patch-openbsd-compat_pfkey_compat.c
blob: d7754e350646491be43e5f05accd8526c54b61fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Index: openbsd-compat/pfkey_compat.c
===================================================================
RCS file: openbsd-compat/pfkey_compat.c
diff -N openbsd-compat/pfkey_compat.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ openbsd-compat/pfkey_compat.c	30 Jun 2009 06:40:07 -0000	1.1
@@ -0,0 +1,27 @@
+#include "bgpd.h"
+#include "session.h"
+
+int
+pfkey_establish(struct peer *p)
+{
+	if (p->conf.auth.method)
+		return (-1);
+	return (0);
+}
+
+int
+pfkey_remove(struct peer *p)
+{
+        if (p->conf.auth.method)
+                return (-1);
+        return (0);
+}
+
+int
+pfkey_init(struct bgpd_sysdep *sysdep)
+{
+	log_warnx("no kernel support for PF_KEY");
+	sysdep->no_pfkey = 1;
+	return (0);
+}
+