Skip to content

Instantly share code, notes, and snippets.

diff -r 5aef2e4b3053 ns3waf/__init__.py
--- a/ns3waf/__init__.py Sat Aug 31 01:00:55 2013 +0900
+++ b/ns3waf/__init__.py Fri Nov 29 16:07:18 2013 +0900
@@ -1,6 +1,9 @@
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
import waflib
+import glob
+import os
+import re
#!/bin/sh -ex
git remote add dce git://github.com/direct-code-execution/net-next-sim.git || echo "ignore"
git fetch dce
git merge dce/sim-ns3-3.11.0-branch --no-commit
cat >> arch/sim/defconfig <<END
CONFIG_MPTCP=y
CONFIG_MPTCP_PM_ADVANCED=y
CONFIG_MPTCP_FULLMESH=y
diff -r a1527ef7aacd .hgignore
--- a/.hgignore Thu Mar 29 13:55:03 2012 +0900
+++ b/.hgignore Thu Mar 29 13:55:22 2012 +0900
@@ -8,3 +8,4 @@
^files-
^.waf-
^.lock-
+pcap
diff -r a1527ef7aacd 3967.weights.intra
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
diff --git a/example/dce-sctp-simple.cc b/example/dce-sctp-simple.cc
new file mode 100644
--- /dev/null
+++ b/example/dce-sctp-simple.cc
@@ -0,0 +1,80 @@
+#include "ns3/core-module.h"
+#include "ns3/network-module.h"
+#include "ns3/dce-module.h"
+#include "ns3/point-to-point-module.h"
+#include "ns3/internet-module.h"
diff -r 84912269f151 -r f89388d8c479 Makefile
--- a/Makefile Wed Jul 11 20:31:37 2012 +0900
+++ b/Makefile Fri Oct 12 10:44:23 2012 +0900
@@ -59,14 +59,15 @@
kernel/_to_keep=notifier.o params.o time.o sysctl.o mutex.o \
rwsem.o semaphore.o srcu.o rcupdate.o rcutiny.o kfifo.o
mm/_to_keep=util.o
-crypto/_to_keep=aead.o ahash.o shash.o api.o algapi.o cipher.o compress.o proc.o
+crypto/_to_keep=aead.o ahash.o shash.o api.o algapi.o cipher.o compress.o proc.o \
+fips.o crc32c.o algboss.o testmgr.o
<configuration>
<modules>
<module name="dce-meta-dev">
<source type="mercurial">
<attribute name="url" value="http://code.nsnam.org/ns-3-dce"/>
<attribute name="module_directory" value="ns-3-dce"/>
</source>
<depends_on name="ns-3-dev" optional="False"/>
<depends_on name="elf-loader" optional="True"/>
  • Make a POST to /v1/statement with the query
  • You get back a JSON document that might contain a nextUri link
  • The document will contain columns if available
  • The document will contain data if available
  • The columns field will always be set if data is set (and usually earlier)
  • If there is no nextUri link, then the query is finished (either successfully completed or failed)
  • Otherwise, keep following the nextUri link
  • The status field is only for displaying to humans as a hint about the query's state on the server. It is not in sync in the query state from the client's perspective and must not be used to determine whether the query is finished.
  • The document will contain an error field if the query has failed — this is how you distinguish between a successfully completed query and a failed query when there is no more nextUri link
  • If the response is an HTTP 503, sleep 50-100ms and try again
@thehajime
thehajime / oolhackathon-14-ovs-dce.patch
Last active August 29, 2015 14:02
preliminary patchset: Openvswitch + NOX support for ns-3 Direct Code Execution
# HG changeset patch
# Parent dbe36400cfc53906ff3cd7af8298dbcc2f95533c
diff --git a/example/dce-ovs.cc b/example/dce-ovs.cc
new file mode 100644
--- /dev/null
+++ b/example/dce-ovs.cc
@@ -0,0 +1,271 @@
+#include "ns3/core-module.h"
+#include "ns3/network-module.h"
diff -r 3aa67e451203 .hgignore
--- a/.hgignore Tue Jul 15 19:53:51 2014 +0900
+++ b/.hgignore Wed Jul 16 12:55:00 2014 +0900
@@ -25,3 +25,4 @@
^GRTAGS
^GSYMS
^GTAGS
+applications
diff -r 3aa67e451203 example/dce-ovs.cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
diff --git a/src/Makefile.am b/src/Makefile.am
index 632ac24..c5603c9 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -19,31 +19,35 @@ nox_core_SOURCES = \
builtin/component.cc \
builtin/connection-manager.cc \
builtin/deployer.cc \
- builtin/dso-deployer.cc \
builtin/event-dispatcher.cc \