--- a/doc/source/dce-kernel.rst Wed Nov 27 17:42:04 2013 +0100
+++ b/doc/source/dce-kernel.rst Thu Nov 28 17:05:47 2013 +0100
@@ -464,6 +464,7 @@
So this function is called by the initialisation, we must provide an implementation for it:
+.. highlight:: c++
::
// Implementation taken from vfs_kern_mount from linux/namespace.c
--- a/doc/source/dce-poll.rst Wed Nov 27 17:42:04 2013 +0100
+++ b/doc/source/dce-poll.rst Thu Nov 28 17:05:47 2013 +0100
@@ -26,6 +26,7 @@
Now that we know the function **poll** of **file**, we can study the **poll** system call, here the following pseudo code commented:
+.. highlight:: c++
::
POLL( .... )
@@ -106,6 +107,7 @@
where **s** represents the socket int the kernel and **ret** is a pointer to a data structure of type **struct poll_table_ref**:
+.. highlight:: c++
::
struct poll_table_ref
--- a/doc/source/dce-user-test.rst Wed Nov 27 17:42:04 2013 +0100
+++ b/doc/source/dce-user-test.rst Thu Nov 28 17:05:47 2013 +0100
@@ -29,12 +29,11 @@
Write Test Program
^^^^^^^^^^^^^^^^^^
-Next, write a test program like |ns3| simulation script for your application (i.e., newapp).
+Next, write a test program like |ns3| simulation script for your application (i.e., dce-newapp.cc).
+.. highlight:: c++
::
- $ cat myscripts/dce-newapp.cc
-
int main (int argc, char *argv[])
{
CommandLine cmd;
@@ -95,6 +94,7 @@
Put the compiler (gcc) generated files (\*.gcno) in the result directory,
+.. highlight:: sh
::
cp *.gcno ./files-0/home/you/are/here/ns-3-dce/
@@ -103,6 +103,7 @@
then run the *lcov* and *genhtml* command to generate coverage information of your test program.
+.. highlight:: sh
::
lcov -c -d .-b . -o test.info
--- a/doc/source/getting-started.rst Wed Nov 27 17:42:04 2013 +0100
+++ b/doc/source/getting-started.rst Thu Nov 28 17:05:47 2013 +0100
@@ -30,6 +30,7 @@
First you need to download Bake using Mercurial and set some variables:
+.. highlight:: sh
::
hg clone http://code.nsnam.org/bake bake
@@ -39,6 +40,7 @@
then you must to create a directory for DCE and install it using bake:
+.. highlight:: sh
::
mkdir dce
@@ -77,6 +79,7 @@
If you would like to try Linux network stack instead of |ns3| network stack, you can try the advanced mode.
The difference to build the advanced mode is the different module name *dce-linux* instead of *dce-ns3* (basic mode).
+.. highlight:: sh
::
mkdir dce
@@ -98,6 +101,7 @@
In this case you need to install the single packages one by one. You may want to start with *ns-3*:
+.. highlight:: sh
::
# Download ns-3
@@ -115,6 +119,7 @@
Then you can download and install *net-next-sim* and DCE (*net-next-sim* includes the linux stack module):
+.. highlight:: sh
::
# Clone net-next-sim