88d4bebfe5
The olsr.org OLSR daemon is an implementation of the Optimized Link State Routing protocol. OLSR is a routing protocol for mobile ad-hoc networks. The protocol is pro-active, table driven and utilizes a technique called multipoint relaying for message flooding. From: Holger Mauermann <holger@mauermann.org> ok pvalchev@
22 lines
815 B
Plaintext
22 lines
815 B
Plaintext
$OpenBSD: patch-src_main_c,v 1.1.1.1 2005/05/22 14:44:45 robert Exp $
|
|
--- src/main.c.orig Tue Mar 29 21:08:52 2005
|
|
+++ src/main.c Wed May 18 01:16:36 2005
|
|
@@ -256,7 +256,7 @@ main(int argc, char *argv[])
|
|
olsr_exit(__func__, 0);
|
|
}
|
|
|
|
-#if defined __FreeBSD__ || defined __MacOSX__ || defined __NetBSD__
|
|
+#if defined __FreeBSD__ || defined __MacOSX__ || defined __NetBSD__ || defined __OpenBSD__
|
|
if ((rts = socket(PF_ROUTE, SOCK_RAW, 0)) < 0)
|
|
{
|
|
olsr_syslog(OLSR_LOG_ERR, "routing socket: %m");
|
|
@@ -472,7 +472,7 @@ olsr_shutdown(int signal)
|
|
/* ioctl socket */
|
|
close(ioctl_s);
|
|
|
|
-#if defined __FreeBSD__ || defined __MacOSX__ || defined __NetBSD__
|
|
+#if defined __FreeBSD__ || defined __MacOSX__ || defined __NetBSD__ || defined __OpenBSD__
|
|
/* routing socket */
|
|
close(rts);
|
|
#endif
|