@@ -42,7 +42,7 @@ the ones outstanding are,
4242
4343* Link Layer: DSL, EAPOL, FDDI, ISDN, NDP, PPP
4444* Internet Layer: ECN, Shim6
45- * Transport Layer: DCCP, RSVP
45+ * Transport Layer: RSVP
4646* Application Layer: BGP, DHCP, DHCPv6, DNS, IMAP, LDAP, MQTT, NNTP,
4747 NTP, ONC/RPC, POP, QUIC, RIP, RTP, SIP, SMTP, SNMP, SSH, Telnet,
4848 XMPP
@@ -818,12 +818,13 @@ These protocols parse a checksum or CRC field —
818818:class: `~pcapkit.protocols.internet.ipx.IPX `,
819819:class: `~pcapkit.protocols.internet.mh.MH `,
820820:class: `~pcapkit.protocols.application.ospf.OSPF `,
821+ :class: `~pcapkit.protocols.transport.dccp.DCCP `,
821822:class: `~pcapkit.protocols.transport.sctp.SCTP `,
822823:class: `~pcapkit.protocols.transport.tcp.TCP ` and
823824:class: `~pcapkit.protocols.transport.udp.UDP ` — and SCTP was the first to
824825check whether the value is *right *, through
825826:attr: `SCTP.checksum_valid <pcapkit.protocols.transport.sctp.SCTP.checksum_valid> `.
826- IPv4, OSPF, TCP and UDP check it too, as do ICMP and ICMPv6, as the
827+ IPv4, OSPF, TCP, UDP and DCCP check it too, as do ICMP and ICMPv6, as the
827828one's-complement half below describes. For HIP, HOPOPT, IPv6-Opts, IPX and MH the
828829field is recorded and never questioned, so a corrupted capture parses as cleanly
829830as an intact one.
@@ -832,9 +833,9 @@ as an intact one.
832833of them is cryptographic and the distinction decides what is actually hard.
833834
834835**The one's-complement Internet checksum **, which covers IPv4's header, TCP, UDP,
835- ICMP/ICMPv6 and OSPF, needs no cryptography at all — it is sixteen-bit addition
836+ DCCP, ICMP/ICMPv6 and OSPF, needs no cryptography at all — it is sixteen-bit addition
836837with end-around carry, and implementing it is an afternoon. What blocks it is the
837- **IP pseudo-header **: the TCP, UDP and ICMPv6 checksums are computed over source
838+ **IP pseudo-header **: the TCP, UDP, DCCP and ICMPv6 checksums are computed over source
838839and destination addresses, the protocol number and the payload length, all of
839840which live in the *enclosing * layer. So verification needs a parsed protocol to
840841reach back to its parent, which is a structural question about
@@ -924,6 +925,20 @@ offload heuristic on :issue:`2470`.
924925 checksum covers, so it is verified when the fragment holds that much, and
925926 :attr: `~pcapkit.corekit.checksum.internet.ChecksumStatus.TRUNCATED `
926927 otherwise.
928+ * **DCCP covers what its Checksum Coverage gives ** (:rfc: `4340#section-9.2 `), over
929+ a pseudo-header that carries the whole packet's length, as TCP's does, so a
930+ fragment is
931+ :attr: `~pcapkit.corekit.checksum.internet.ChecksumStatus.NO_PSEUDO_HEADER `
932+ too. A coverage running past the packet, which the RFC forbids and has the
933+ receiver ignore, is
934+ :attr: `~pcapkit.corekit.checksum.internet.ChecksumStatus.INVALID ` and
935+ warns. Linux, until it dropped DCCP in 6.16, never sent one: its
936+ ``dccp_csum_outgoing `` wrote a CsCov of 0 wherever the coverage reached the
937+ end of the packet, and ``make() `` does the same when it computes the
938+ checksum. No value is
939+ :attr: `~pcapkit.corekit.checksum.internet.ChecksumStatus.NOT_COMPUTED `:
940+ DCCP has no checksum to leave out, and Linux computed it in software rather
941+ than offloading it. Settled at implementation (:issue: `2489 `).
927942
928943The cryptographic half is sequenced for **wave 2 or 3 **, and could be done sooner
929944since ESP has already laid the groundwork.
@@ -1123,9 +1138,15 @@ Steps`_ above.
11231138**Wave 2 — the protocol pairs that want a shared abstract base **, per `More
11241139Protocols, More!!! `_ above: **TLS/SSL with DTLS ** and **IGMP ** and **DCCP ** on
11251140their own. These are grouped because the shared-base question is the design work
1126- and doing either half of a pair alone would answer it twice. **DCCP ** is the
1127- transport-layer implementation, tracked by :issue: `2489 `, and blocked on
1128- :issue: `2479 ` for its pseudo-header checksum.
1141+ and doing either half of a pair alone would answer it twice.
1142+
1143+ **DCCP — done within wave 2 ** (:issue: `2489 `).
1144+ :class: `~pcapkit.protocols.transport.dccp.DCCP ` dissects every :rfc: `4340 ` packet
1145+ type and DCCP-Listen (:rfc: `5596 `), with short and long sequence numbers, and the
1146+ options :rfc: `4340 ` defines; its checksum is verified and computed over
1147+ :class: `~pcapkit.protocols.misc.checksum.ip_pseudo.IP_Pseudo `, as `Checksum and
1148+ Integrity Verification `_ above describes. The Data Checksum option's CRC-32c is
1149+ recorded and not checked.
11291150
11301151**Done within wave 2 — ICMP/ICMPv6 shared base. ** :class: `~pcapkit.protocols.internet.icmp.ICMP `
11311152is the abstract base :class: `~pcapkit.protocols.internet.icmpv4.ICMPv4 ` and
@@ -1311,7 +1332,7 @@ and its signature parameters could start whenever, since
13111332:class: `~pcapkit.protocols.internet.esp.ESP ` has already established both the
13121333keying-context channel and the report-rather-than-raise policy. The
13131334one's-complement half (IPv4, TCP, UDP, ICMP/ICMPv6, OSPF) is **done **
1314- (:issue: `2470 `, :issue: `2472 ` to :issue: `2475 `).
1335+ (:issue: `2470 `, :issue: `2472 ` to :issue: `2475 `), and DCCP's with it ( :issue: ` 2489 `) .
13151336
13161337**IP pseudo-header — done ** (:issue: `2471 `).
13171338:class: `~pcapkit.protocols.misc.checksum.ip_pseudo.IP_Pseudo ` is the
0 commit comments