File: host

package info (click to toggle)
tcng 10b-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,632 kB
  • ctags: 2,515
  • sloc: ansic: 19,038; pascal: 4,640; yacc: 2,619; sh: 1,908; perl: 1,546; lex: 772; makefile: 755
file content (75 lines) | stat: -rw-r--r-- 1,872 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# TCNG host syntax: bare dotted quad ------------------------------------------
tcc | sed '/.*session /{s///;s/ .*$//p;};d'
prio {
    class
	on rsvp element (ipproto "tcp",dst 1.2.3.4);
}
EOF
1.2.3.4
# TCNG host syntax: dotted quad in double quotes ------------------------------
tcc | sed '/.*session /{s///;s/ .*$//p;};d'
prio {
    class
	on rsvp element (ipproto "tcp",dst "2.3.4.5");
}
EOF
2.3.4.5
# TCNG host syntax: bare dotted quad with host prefix -------------------------
tcc | sed '/.*session /{s///;s/ .*$//p;};d'
prio {
    class
	on rsvp element (ipproto "tcp",dst host 3.4.5.6);
}
EOF
3.4.5.6
# TCNG host syntax: dotted quad in double quotes, with host prefix ------------
tcc | sed '/.*session /{s///;s/ .*$//p;};d'
prio {
    class
	on rsvp element (ipproto "tcp",dst host "4.5.6.7");
}
EOF
4.5.6.7
# TCNG host syntax: bare name -------------------------------------------------
tcc 2>&1
prio {
    class
	on rsvp element (ipproto "tcp",dst localhost);
}
EOF
ERROR
<stdin>:3: syntax error near "localhost"
# TCNG host syntax: name in double quotes -------------------------------------
tcc | sed '/.*session /{s///;s/ .*$//p;};d'
prio {
    class
	on rsvp element (ipproto "tcp",dst "localhost");
}
EOF
127.0.0.1
# TCNG host syntax: bare name with host prefix --------------------------------
tcc 2>&1
prio {
    class
	on rsvp element (ipproto "tcp",dst host localhost);
}
EOF
ERROR
<stdin>:3: syntax error near "localhost"
# TCNG host syntax: bare name with host prefix (obsolete) ---------------------
tcc 2>&1
prio {
    class
	on rsvp element (ipproto "tcp",dst host`this-doesnt-work);
}
EOF
ERROR
<stdin>:3: syntax error near "`"
# TCNG host syntax: name in double quotes, with host prefix -------------------
tcc | sed '/.*session /{s///;s/ .*$//p;};d' 2>&1
prio {
    class
	on rsvp element (ipproto "tcp",dst host "localhost");
}
EOF
127.0.0.1