tips_and_tricks
Tips and Tricks
Running usrsctp applications with gdb using libtool
- libtool –mode=execute gdb ./tsctp
- set args -U 9899 -E 5555
- run
Running inet example with gdb
- Change to the directory with the example you want to start.
- gdb opp_run
- set args -l ../../../src/INET -n ../../../src/../examples:../../../src -u Cmdenv
- run
Compiling FreeBSD Kernel with a different config
- Change the config file (e.g. NOSCTP) in /usr/src/amd64/conf
- Change to /usr/src
- sudo make buildkernel KERNCONF=NOSCTP
- sudo make installkernel KERNCONF=NOSCTP
- sudo reboot
Creating a pipe and capturing data
- mkfifo /tmp/p
- /dumpcap -i /tmp/p
- tcpdump -i lo0 -w /tmp/p
Connecting to a serial port on FreeBSD
- sudo tip uart0
Connecting to BSDx/PowerSwitch/Cisco via serial port
- ssh bsd8
- sudo tip bsdx [x = 1-7] // sudo tip power // sudo tip cisco
- End session with ~.
tips_and_tricks.txt · Last modified: by admin
