Install commands sample
-----------------------

Configuring
    ./configure

Making:
    make

Installing:
    sudo make install

Preparing for starting:
    sudo cp examples/tm.conf /usr/local/etc/
    sudo vi /usr/local/etc/tm.conf # edit the configuration

Manual starting Trafficmeter:
    sudo /usr/local/libexec/tmd

FreeBSD setup:
    sudo vi /etc/rc.conf # add lines for all packet capturing interfaces
        ifconfig_<interface>="up monitor mtu 9218 -arp -wol -lro -rxcsum -vlanhwcsum"
    sudo vi /boot/loader.conf # add lines to disable mitigations
        machdep.mitigations.ibrs.disable=1
        machdep.mitigations.ssb.disable=1
        machdep.mitigations.mds.disable=1
        machdep.mitigations.rngds.enable=0
        machdep.mitigations.zenbleed.enable=0
        machdep.mitigations.taa.enable=0
        vm.pmap.pti=0
    sudo reboot
    sudo cp examples/freebsd/tmd /usr/local/etc/rc.d/
    echo 'tmd_enable="YES"' | sudo tee -a /etc/rc.conf > /dev/null
    sudo service tmd start
    tail -f /var/log/tmd.log # see log messages

Linux setup:
    sudo vi /etc/default/grub # add kernel options "iommu=pt mitigations=off"
    sudo update-grub
    sudo reboot
    sudo cp examples/linux/tmd.service /etc/systemd/system/
    sudo systemctl daemon-reload
    sudo systemctl enable tmd
    sudo systemctl start tmd
    journalctl -fu tmd # see log messages

