• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KarpelesLab / slirp / 23943906717
71%

Build:
DEFAULT BRANCH: master
Ran 03 Apr 2026 10:58AM UTC
Jobs 1
Files 25
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Apr 2026 10:58AM UTC coverage: 80.825% (+0.9%) from 79.889%
23943906717

push

github

MagicalTux
Add vtcp sub-package: foundation for shared RFC-compliant TCP stack

Phase 1 of the vtcp implementation — core building blocks with 88% test
coverage. These components will be composed into the full TCP connection
engine (Phase 2) which will then replace the three ad-hoc TCP
implementations currently in slirp, vclient, and the virtual listener.

Components:

  seqspace.go — TCP sequence number arithmetic with 32-bit wraparound.
    SeqBefore, SeqAfter, SeqInRange, etc.

  segment.go — TCP segment parsing and serialization (raw bytes, no IP).
    ParseSegment, Marshal, SegLen (accounts for SYN/FIN consuming seq).

  options.go — TCP option parse/build for all modern options:
    MSS (RFC 793), Window Scale (RFC 7323), Timestamps (RFC 7323),
    SACK-Permitted and SACK blocks (RFC 2018).

  sendbuf.go — Send buffer tracking app data through the pipeline:
    queued → sent/unacked → acknowledged. Sequence-indexed with
    retransmit support.

  recvbuf.go — Receive buffer with out-of-order segment reassembly
    and SACK scoreboard generation. Handles overlapping segments,
    duplicates, and gap-filling.

  rto.go — RFC 6298 RTO calculator: SRTT/RTTVAR smoothing, Karn's
    algorithm (don't sample retransmits), exponential backoff.

  congestion.go — CongestionController interface + NewReno (RFC 5681):
    slow start, congestion avoidance, fast retransmit (3 dup ACKs),
    fast recovery with cwnd inflation. Initial window per RFC 6928.

  doc.go — Package doc, State enum (RFC 793 states), flag constants,
    SegmentWriter callback type, default parameters.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

437 of 501 new or added lines in 8 files covered. (87.23%)

3174 of 3927 relevant lines covered (80.83%)

10.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
32
0.0
vtcp/doc.go
13
87.96
vtcp/recvbuf.go
6
93.62
vtcp/options.go
6
91.18
vtcp/sendbuf.go
4
93.44
vtcp/congestion.go
3
95.77
vtcp/segment.go
Jobs
ID Job ID Ran Files Coverage
1 23943906717.1 03 Apr 2026 10:58AM UTC 25
80.83
GitHub Action Run
Source Files on build 23943906717
  • Tree
  • List 25
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23943906717
  • 39688b6d on github
  • Prev Build on master (#23943364098)
  • Next Build on master (#23944089928)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc