Skip to content

Commit

Permalink
Initial import of a new application that creates ROHC over UDP tunnel…
Browse files Browse the repository at this point in the history
…s. This

application can help in debugging the ROHC library.

Description:

The program creates a ROHC tunnel over UDP. A ROHC tunnel compresses the IP
packets it receives from a virtual network interface and decompresses the
ROHC packets it receives from one UDP flow.

               +-----------+                          +----------+
 IP packets    |  Virtual  |     +--------------+     |          |
 sent by   --> | interface | --> |  Compressor  | --> |   ROHC   |
 the host      |   (TUN)   |     +--------------+     |  packets |
               |           |                          |   over   |
 IP packets    |           |     +--------------+     | UDP flow |
 received  <-- |           | <-- | Decompressor | <-- |          |
 from the      |           |     +--------------+     |          |
 tunnel        +-----------+                          +----------+

The program outputs messages from the tunnel application on stderr and
messages from the ROHC library on stdout.

Usage:

rohctunnel NAME remote RADDR local LADDR port PORT

NAME    the name of the tunnel
RADDR   the IP address of the remote host
LADDR   the IP address of the local host
PORT    the UDP port to use (local and remote)

Example:

Type as root on machine A:

 # rohctunnel rohc0 remote 192.168.0.20 local 192.168.0.21 port 5000
 # ip link set rohc0 up
 # ip -4 addr add 10.0.0.1/24 dev rohc0
 # ip -6 addr add 2001:eeee::1/64 dev rohc0

Type as root on machine B:

 # rohctunnel rohc0 remote 192.168.0.20 local 192.168.0.21 port 5000
 # ip link set rohc0 up
 # ip -4 addr add 10.0.0.1/24 dev rohc0
 # ip -6 addr add 2001:eeee::1/64 dev rohc0

Then:

 $ ping 10.0.0.1
 $ ping6 2001:eeee::1
  • Loading branch information
didier-barvaux committed Mar 12, 2007
1 parent b507445 commit e064cf2
Show file tree
Hide file tree
Showing 5 changed files with 855 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile.am
Expand Up @@ -30,6 +30,9 @@ test: test/test.c test/test.h all
report:
./test/report/report.sh

tunnel: app/tunnel/tunnel.c
$(MAKE) -C app/tunnel

clean-doc:
$(RM) -r doc/html

8 changes: 8 additions & 0 deletions app/Makefile.am
@@ -0,0 +1,8 @@
################################################################################
# Name : Makefile
# Author : Didier Barvaux <didier.barvaux@b2i-toulouse.com>
# Description: create the ROHC applications
################################################################################

SUBDIRS = tunnel

25 changes: 25 additions & 0 deletions app/tunnel/Makefile.am
@@ -0,0 +1,25 @@
################################################################################
# Name : Makefile
# Author : Didier Barvaux <didier.barvaux@b2i-toulouse.com>
# Description: create the ROHC tunnel application
################################################################################

bin_PROGRAMS = rohctunnel

INCLUDES = \
-I../../include

AM_CFLAGS = -g -Wall -Wstrict-prototypes

AM_MAKEFLAGS = -s

AM_LDFLAGS = \
-L../../lib

rohctunnel_SOURCES = tunnel.c

rohctunnel_LDADD = \
-lrohc_common \
-lrohc_comp \
-lrohc_decomp

0 comments on commit e064cf2

Please sign in to comment.