Repository navigation
gotc: flower filter writes and chain templates (increment 24) - #379
Merged
Merged
Conversation
262 rows over f_flower.c's parse side: every keyword and form, the verb grid with chain templates, a row per lead W321-W410 and the kernel notes, the (R) crash rows with tc's own answer, the size boundaries and five batch shapes. Two batches on one boot agree apart from W370's stack bytes. W406's batches move line 2's sdata word with leading spaces so its 32-byte copy covers flower's NULs; the four rows were recaptured twice. The new docs/netlink/upstream/iproute2-tc-flower-write.md records each lead's outcome, six corrected predictions, K90-K112 (K103 dropped as unreachable through tc) and five bug-class candidates. Not submitted to netdev. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port f_flower.c's parse side (iproute2 v7.2.0) behind gotc_write: the keyword chain in tc's order with its strcmp/matches() split, the L2, L3/L4, enc and ct keys, the five enc option wrappers, and parse_done's emission order. flower joins foptParsers, which chain templates reach through the same filterModify, so gotc now refuses no tc write kind by name. All 262 tcflowerwrite rows replay byte for byte, apart from 13 refused by name: W370/W372 (stack bytes, UB shift), W383-W387 (tc aborts, segfaults or overflows its 4096-byte option buffers) and W397 (an all-ones pfcp SEID after a failed batch line, where tc reads a stale errno). tcfwrite ec-116 and both tdc flower rows are now sent. m_ct.c's mark and label parsers and getAddr1's any/all now serve flower too; xtcpnl gains TCA_CLS_FLAGS_VERBOSE. TestGotcFlowerWrite (110 rows), FuzzFlowerEncOpts, seven flower fuzz seeds and 10 killed mutants. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…4B, DOC017) iproute2-tc-flower-write.md gains one generated entry per lead W321-W410 (each pinning row's command, tc's rc, stderr and what became of the request), the 24W/24B status and the HEAD check: f_flower.c is unchanged at the mirror's d7e038f99479, so every lead stands; ll_addr's rewrite refuses W374's MACs and drops W406's MAC NULs; the kernel has no commit after v7.4-rc4 in the cited files. W402's table row now escapes its '|'. 43 "Extended in increment 24" lines go into the flower, filter-write and action-write docs. The mirror's main was rewritten after 23B, so the W182 fix is now cited as 55c024f3475a (was c4d6334c55aa), and the 23B check records cf4eec518462's addattr_l padding fix. gotc.md gains a Writes section. Not submitted to netdev. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tc 7.2.0 and the gotc_write build ran all 262 tcflowerwrite rows, tcfwrite ec-116 and tdc's ct/3992 and pedit/1a4f: 252 of 265 identical (23 where only tc hears the kernel), the other 13 the refusals by name. tc matched the corpus on every row, so K90-K112 recurred on a second boot. The VM was left as found and powered off. Also corrects the 24W status to 13 refused rows (it said 14). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
randomizedcoder
added a commit
that referenced
this pull request
Dec 3, 2026
PR #379 (gotc/flowerwrite) added iproute2-tc-flower-write.md but not its upstream index row; CI runs only the lint ratchet, so the gap landed red on the docs check - the same shape as 8b707c8's two gaps and 4151689's third, found this time by the post-merge gate battery rather than review. 🤖 Generated with [pi](https://github.com/badlogic/pi-mono)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Increment 24: gotc now clones
tc filter … flowerwrites andtc chain add … flowertemplates. That was the last tc write kind gotc refused by name, so every tc 7.2.0 write that needs no bpf(2) is now cloned.Commits
nlcap: thetcflowerwritecapture space, 262 rows (every keyword and form, a row per lead W321–W410 and per kernel note K90–K112, bounds, and batches).gotc: flower writes behindgotc_write(fw_flower*.go). ct and tunnel_key share their option parsers with it, andTcaClsFlagsVerboseis added to pkg/xtcpnl.docs(upstream):iproute2-tc-flower-write.md, with an entry per lead and a gotc column;Results
tcflowerwriterows replay byte for byte. 13 are refused by name, rc 255, with nothing sent:tdcFilterSkipsis now empty, andtdcFilterWritesSentis 295.TestGotcFlowerWrite: 110 rows;FuzzFlowerEncOptsabout 900k runs,FuzzGotcFilterWrite994k;internal/gotccoverage 86.9%.55c024f3475a, because the mirror's main was rewritten.Gates (at ab88397)
go test ./...: passThe first
go testand race runs failed onTestSockstatReader(pkg/xtcp) andTestStartMetrics(cmd/zstd-probe). This branch touches neither package, both pass on their own, and the rerun passed.🤖 Generated with Claude Code