File: text_req

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-- 751 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_TEXT_REQ test cases
# type is bit-wise or of these flags
# PM_TEXT_ONELINE	1
# PM_TEXT_HELP		2
# and one of these flags
# PM_TEXT_PMID		4
# PM_TEXT_INDOM		8
#

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

# text_req: len type from ident type
# OK (pmid-oneline case)
? PDU_TEXT_REQ 42 pmid(sampledso.longlong.million) 5

# text_req: len type from ident type
# OK (indom-help case)
? PDU_TEXT_REQ 42 indom(30.2) 10

# text_req: len type from ident type
# BAD short PDU
? PDU_TEXT_REQ 42 pmid(sampledso.longlong.million)

# text_req: len type from ident type
# BAD long PDU
? PDU_TEXT_REQ 42 pmid(sampledso.longlong.million) 5 42