summaryrefslogtreecommitdiff
path: root/lib9p/9P2000.txt
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-02 22:09:31 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-02 22:09:31 -0600
commit4d451f90eba193a4ca2848c4ac7acccda96ed008 (patch)
treee00a41587de365134032fbd1ceff124b5552a280 /lib9p/9P2000.txt
parentad2027ae26e5d83eb42c9edaa90f7b278f9b0d3d (diff)
lib9p: Validate Twalk and Rwalk list sizes
Diffstat (limited to 'lib9p/9P2000.txt')
-rw-r--r--lib9p/9P2000.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib9p/9P2000.txt b/lib9p/9P2000.txt
index 5b5b942..fa04fe0 100644
--- a/lib9p/9P2000.txt
+++ b/lib9p/9P2000.txt
@@ -115,7 +115,7 @@ bitfield o 8
READ = 0 # unlock read()
WRITE = 1 # unlock write()
RDWR = 2 # unlock read() and write()
- EXEC = 3 # unlock read() for files, walk() for directorie
+ EXEC = 3 # unlock read() for files, walk() for directories
# In the 9P protocol, each message has a type, and message types come
# in pairs (except "Rerror"); "T" and "R"; T-messages are
@@ -133,8 +133,8 @@ bitfield o 8
107/Rerror = "ename[s]"
108/Tflush = "oldtag[2]"
109/Rflush = ""
-110/Twalk = "fid[4] newfid[4] nwname[2] nwname*(wname[s])"
-111/Rwalk = "nwqid[2] nwqid*(wqid[qid])"
+110/Twalk = "fid[4] newfid[4] nwname[2] nwname*(wname[s])" # nwname has a maximum of 16
+111/Rwalk = "nwqid[2] nwqid*(wqid[qid])" # nwname has a maximum of 16
112/Topen = "fid[4] mode[o]"
113/Ropen = "qid[qid] iounit[4]"
114/Tcreate = "fid[4] name[s] perm[dm] mode[o]"