File: tcsdefinc

package info (click to toggle)
tcng 10b-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,644 kB
  • sloc: ansic: 19,040; pascal: 4,640; yacc: 2,619; sh: 1,914; perl: 1,546; lex: 772; makefile: 751
file content (32 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (5)
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