blob: 789bd7f8056ae08c51954f3de60d7b8ec8adda3a (
plain)
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
|
$NetBSD: patch-aa,v 1.2 2006/03/14 01:58:47 joerg Exp $
--- libteredo/server.c 2006-02-28 00:48:07.000000000 +0000
+++ libteredo/server.c.new 2006-02-28 00:47:56.000000000 +0000
@@ -39,6 +39,7 @@
#include <stdlib.h>
#include <sys/types.h>
+#include <sys/uio.h>
#include <unistd.h> // close()
#include <sys/socket.h>
#include <netinet/in.h> // struct in6_addr
@@ -49,6 +50,10 @@
#include <pthread.h>
#include <syslog.h>
+#ifdef __NetBSD__
+#include <machine/limits.h>
+#endif
+
#include "server.h"
#include "v4global.h"
#include "checksum.h"
@@ -253,7 +258,9 @@ libteredo_send_ipv6 (const void *p, size
/* ICMPv6 time exceeded */
case ECONNREFUSED: /* ICMPv6 unreach port unreachable */
case EMSGSIZE: /* ICMPv6 packet too big */
+#ifdef EPROTO
case EPROTO: /* ICMPv6 param prob (and other errors) */
+#endif
break;
default:
|