Installation

Pre-requires

Suppose on your machine installed Ubuntu 18.04, you have:

  • gcc, make, git, libxml2-dev, libpcap-dev, libconfuse-dev libsctp-dev : sudo apt update && sudo apt install gcc make git libxml2-dev libpcap-dev libconfuse-dev libsctp-dev
  • the source code on your machine: git clone https://github.com/montimage/5greplay.git
  • mmt-sdk: cd 5greplay; sudo dpkg -i lib/mmt-dpi*.deb; sudo ldconfig

Clean

  • Do make clean to clean compiled objects

Compile

  • compile on its local directory: make

  • compile sample rules existing in rules folder: make sample-rules

  • enable debug using gdb: make DEBUG=1

  • if you want to use Valgrind DRD or Helgrind, you should do make DEBUG=1 VALGRIND=1. The option VALGRIND=1 adds some instruction allowing Valgrind bypass atomic operations that usually causes false positive errors in Valgrind.

Screenshot

screenshot

Usage

Please refer to ../../tutorial/replay-open5gs