Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Repo: drv netif netmap
This page describes drv-netif-netmap.
If your netmap headers are not in
/usr/include, set the env
NETMAPINCS to point to the right place, e.g.
export NETMAPINCS=/home/pooka/netmap/sys. Then run:
git submodule update --init
./buildrump.sh/buildrump.sh -T rumptools -s rumpsrc
(cd libnetmapif ; ../rumptools/rumpmake dependall && ../rumptools/rumpmake install)
examples and compile with
make. Then configure one TCP/IP
stack with the address 126.96.36.199, another with the address 188.8.131.52, and
connect them to each other via the VALE virtual switch:
./netmapcat vale:1 184.108.40.206 listen 1
./netmapcat vale:2 220.127.116.11 connect 18.104.22.168 1
Observe whatever you type in the latter terminal magically(?) appear in the other one.
vale:x with a real interface name, e.g.
ix0, you should
be able to bind to a physical network interface and access the wire.