nonstd.h.test file toegevoegd (voor testdoeleinden)
authorRick van Rein <rick@openfortress.nl>
Sun, 17 Sep 2017 13:11:56 +0000 (15:11 +0200)
committerRick van Rein <rick@openfortress.nl>
Sun, 17 Sep 2017 13:11:56 +0000 (15:11 +0200)
nonstd.h.test [new file with mode: 0644]

diff --git a/nonstd.h.test b/nonstd.h.test
new file mode 100644 (file)
index 0000000..90bc0ed
--- /dev/null
@@ -0,0 +1,41 @@
+/* The error line below is here to satisfy RFC requirements: We cannot
+ * distribute code that has non-standard protocol numbers built in as
+ * defaults.  So you must read this and understand that you are running
+ * a non-compliant, experimental code version.  When you agree, please
+ * change the error directives to warnings -- then, the code will build.
+ *
+ * Sincerely, Rick van Rein, OpenFortress.
+ */
+
+// #error "Build uses experimental Neighbor Discovery Option Type 253 for Destination Link-Layer Address"
+
+#define ND_OPT_DESTINATION_LINKADDR 253
+
+
+// #error "Build uses experimental UDP port number 27629 or 0x6bed"
+
+#define UDP_PORT_6BED4 25790
+
+
+#warning "Build uses temporary IPv4 address information"
+
+#define SERVER_6BED4_IPV4_TXT                  "145.135.0.1"
+#define SERVER_6BED4_IPV4_INT32                        ( (145L << 24) | (135L << 16) | (0L << 8) | 1L )
+#define SERVER_6BED4_IPV4_INT0                 145
+#define SERVER_6BED4_IPV4_INT1                 135
+#define SERVER_6BED4_IPV4_INT2                 0
+#define SERVER_6BED4_IPV4_INT3                 1
+#define SERVER_6BED4_IPV4_BINSTR               "\x91\x88\x00\x01"
+
+#define SERVER_6BED4_PORT_TXT                  "25790"
+#define SERVER_6BED4_PORT_BINSTR               "\xbe\x64"
+
+#define SERVER_6BED4_IPV4_PORT_TXT             "145.136.0.1:25789"
+#define SERVER_6BED4_PORT_IPV4_ADDRSTR         "\xbc\x64\x91\x88\x00\x01"
+#define SERVER_6BED4_PORT_IPV4_MACSTR          "\xbe\x64\x91\x88\x00\x01"
+
+/* Define LOCAL_OVERRIDES_PORT0 to forcefully detect 6bed4 port 0 as an
+ * override to a local address.  This is used when a host uses its own /64
+ * and has no other addresses available.
+ */
+#define LOCAL_OVERRIDES_PORT0 yes