forked from Gandi/packet-journey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
26 lines (18 loc) · 746 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Copy pktj.conf into chroot
touch /tmp/abc
/mnt/build/build/app/build/pktj --log-level 8 -l 0,1,2,3,4 -n 1 -- --configfile /mnt/build/conf/pktj.conf
gdb /mnt/build/build/app/build/pktj /tmp/core
debug:
build dpdk with something like `make RTE_KERNELDIR=/usr/src/linux-3.18.10-dpdk O=build_kvm EXTRA_CFLAGS="-g -O0"`
vm: gdbserver /dev/ttyS1 /mnt/build/app/build/l3fwd ....
host: gdb ./l3fwd
gdb> target remote | socat unix-connect:/tmp/tmp.XXXXXXXX/vm-r2-serial.pipe -
# ip a add 1.0.0.1/31 dev vEth0_0
# ip a add 2001:1::1/127 dev vEth0_0
# ip a add 1.0.0.3/31 dev vEth1_0
# ip a add 2001:1::3/127 dev vEth1_0
# ip l set vEth0_0 up
# ip l set vEth1_0 up
Fastpath:
ssh r3 ping 1.0.1.254
ssh r2 tcpdump -i vEth0_0 -n -vvv