Repository navigation
docs(protocols): tighten misc protocol prose and correct the record docs (#719) - #1037
Conversation
|
Cross-review verdict on
Confirmed:
Nit: "or use the protocol chain" does not apply to a bare |
ba80e3c to
8e9111f
Compare
…ocs (#719) - pcapng.py: name-resolution record docs no longer say "systemd journal export"; the option table lists the four custom options; packet-block lists say SPB, not ISB; `register` warning contract now states the built-in descriptor case; `_get_linktype` summary was truncated. - Cut timed context (issue/commit history, "used to") from pcapng.py, pcap/frame.py and the enum docstrings; kept each rationale. - null.py: state that `NoPayload.payload` is itself; fix a module path in attribute docs (null.py, raw.py). Docstrings and comments only; AST unchanged.
8e9111f to
b83eb7d
Compare
|
Cross-review verdict on What changed. Probes, each in a fresh process:
The Scope. The only change since round 2 is that |
make testpasses, and a test case covers the change (prose only; existing modules run one per process)What is the purpose of your pull request?
docs— documentation onlyDescription
Slice of #719 for
pcapkit/protocols/misc/. Cuts timed context and restatement, keeps rationale, fixes prose the code contradicts:pcapng.py: name-resolution record docs said "systemd journal export"; option table omitted the fouropt_custom_*options; packet-block lists said ISB wherePACKET_TYPESholds SPB;register's Warns now states that the first explicit registration over a built-in module descriptor still warns (probed);_get_linktypesummary was truncated.pcap/frame.py:len/cap_lenrationale kept (Wireshark names), commit dates kept becausetoolkit/pcapng.pypoints to them.null.py: notespayloadis the instance itself;null.py/raw.pyattribute docs citedpcapkit.protocols.null.Not fixed (code):
ns_dnsname/ns_dnsIP4addr/ns_dnsIP6addrerror strings say "systemd Journal Export Block" but the check is for a Name Resolution Block (pcapng.pyread and make sides);register_recordwarning string says the same.Sphinx
-n, branch vs main, misc files: 27 vs 27 warnings, none new. Tests: alltests/protocols/misc/modules,test_pcapng_regression.py,test_generated_pcap_runtime.py,test_docstring_contract.py,tests/projectpass.AST guard (docstrings stripped, vs
origin/main):pcapkit/protocols/misc/null.pypcapkit/protocols/misc/pcap/frame.pypcapkit/protocols/misc/pcapng.pypcapkit/protocols/misc/raw.py__init__.py,pcap/__init__.py,pcap/header.py