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 27 28 29 30 31 32
|
# tcsim: no #include needed to get packet definitions -------------------------
tcsim >/dev/null
#define NOTHING
dev eth0
send IP_PCK(NOTHING)
EOF
# tcsim -n disables packet.def inclusion --------------------------------------
tcsim -n 2>&1
dev eth0
send IP_PCK(NOTHING)
EOF
ERROR
<stdin>:2: unknown device "IP_PCK" near "IP_PCK"
# of course, we can #include packet.def explicitly (-n) -----------------------
tcsim -n >/dev/null
#include "packet.def"
#define NOTHING
dev eth0
send IP_PCK(NOTHING)
EOF
# of course, we can #include packet.def explicitly (no -n) --------------------
tcsim >/dev/null
#include "packet.def"
#define NOTHING
dev eth0
send IP_PCK(NOTHING)
EOF
|