File: fetch

package info (click to toggle)
pcp 7.1.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 252,748 kB
  • sloc: ansic: 1,483,656; sh: 182,366; xml: 160,462; cpp: 83,813; python: 24,980; perl: 18,327; yacc: 6,877; lex: 2,864; makefile: 2,738; awk: 165; fortran: 60; java: 52
file content (30 lines) | stat: -rw-r--r-- 1,125 bytes parent folder | download | duplicates (2)
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
# PDU specifications, used by ../src/pdu-gadget to produce a
# binary PDU stream for QA
#
# PDU_FETCH test cases

# credentials: len type from ncred cred[0]
? PDU_CREDS 42 1 0x01020000

# profile to fetch all instances of all indoms
? PDU_PROFILE 0 0 0 0 0

# fetch: len type from ctx time[2] (unused) numpmid pmidlist[...]
# OK
? PDU_FETCH 42 0 0 0 3 pmid(sampledso.long.one) pmid(sampledso.long.ten) pmid(sampledso.long.hundred)

# fetch: len type from ctx time[2] (unused) numpmid
# BAD < min length
? PDU_FETCH 42 0 0 0 0

# fetch: len type from ctx time[2] (unused) numpmid pmidlist[...]
# BAD numpmid < 1
? PDU_FETCH 42 0 0 0 -1 pmid(sampledso.long.one) pmid(sampledso.long.ten) pmid(sampledso.long.hundred)

# fetch: len type from ctx time[2] (unused) numpmid pmidlist[...]
# BAD PDU too long for numpmid == 2
? PDU_FETCH 42 0 0 0 2 pmid(sampledso.long.one) pmid(sampledso.long.ten) pmid(sampledso.long.hundred)

# fetch: len type from ctx time[2] (unused) numpmid pmidlist[...]
# BAD PDU too short for numpmid == 4
? PDU_FETCH 42 0 0 0 4 pmid(sampledso.long.one) pmid(sampledso.long.ten) pmid(sampledso.long.hundred)