Repository navigation
Commit 1b4f970
authored
The output of codemod-v2.py on 4f62f52, with no hand edits.
- protocols/<layer>/<proto>.py and its schema/ and data/ modules become
protocols/<layer>/<proto>/{protocol,schema,data}.py; each package
__init__ exports its class alone, eagerly, and binds each public class
its schema and data modules define as Schema_<name> and Data_<name>,
outside __all__, in a block per role under a "# Header Schemas" or
"# Data Models" heading, as ruled in review of #2753. A [tool.isort]
section in pyproject.toml keeps isort off these files, filter_files
included; protocol-family-grouping.rst shows the layout and the
doc-claims test pins every __init__ to it.
- The TLS record data models SSL reads move from tls/data.py to a new
ssl/data.py, as pieces the family shares; tls/data.py keeps TLS.
- The schema/ and data/ trees and their aggregations go, with no alias:
schema/schema.py is protocols/schema.py, data/data.py and data/protocol.py
merge into protocols/data.py, and ipv6_option merges into ipv6_ext.schema.
- ProtocolBase.__init_subclass__ finds a class's schema and data in its own
package and imports Raw's on demand.
- Imports, ModuleDescriptor strings, docs targets, paths and test specs are
rewritten; released changelogs get every role target, 1.6.0 stays with
#2483.
- versionremoved records every name v1.5.1 shipped that no longer resolves
at its old path, read from the tag by a new util/shipped_names.py into a
checked-in fixture; a re-export points at its defining module, and the
address patterns #2614 removed unrecorded get their note too.
- The 1744 test gains TestShippedNames, which fails on any such name left
unrecorded; test_public_api leaves the ruled aliases out of its unlisted
names; tests that walked or pinned the old trees follow the new layout,
two that pinned only the aggregations are deleted, and a new test pins
the layout and the aliases.
All modules import, protocol models are unchanged, every unittest leg and
project guard passes, and a non-editable docs build is warning-free.
1 parent 4f62f52 commit 1b4f970
1,022 files changed
Lines changed: 20982 additions & 16016 deletions
File tree
- docs/source
- changelog
- contributing
- conventions
- pcapkit
- const
- corekit
- checksum
- fields
- schema
- foundation
- analysis
- engines
- reassembly
- ip
- protocols
- application
- internet
- link
- misc
- transport
- utilities
- vendor
- examples/generators
- dispatch_families
- option_families
- pcapkit
- const
- arp
- dccp
- esp
- ftp
- hip
- http
- icmpv6
- icmp
- ieee802_11
- igmp
- ipv4
- ipv6
- ipx
- l2tp
- linux
- mh
- ngap
- ospf
- pcapng
- radiotap
- reg
- sctp
- sslv2
- tcp
- tls
- vlan
- corekit
- checksum
- fields
- schema
- dumpkit
- foundation
- analysis
- engines
- reassembly
- data
- registry/protocols
- traceflow
- data
- interface
- protocols
- application
- drarp
- dtls
- ftp_data
- ftp
- httpv1
- httpv2
- http
- ngap
- ospf
- rarp
- sslv2
- sslv3
- ssl
- tls
- data
- application
- internet
- link
- misc
- checksum
- pcap
- transport
- internet
- ah
- esp
- hip
- hopopt
- icmpv4
- icmpv6
- icmp
- igmpv1
- igmpv2
- igmpv3
- igmp
- ipsec
- ipv4
- ipv6_ext
- ipv6_frag
- ipv6_opts
- ipv6_route
- ipv6
- ipx
- ip
- mh
- link
- arp
- c_tag
- ethernet
- frad
- gre
- ieee802_11
- inarp
- l2tpv2
- l2tp
- linux_sll1
- linux_sll2
- linux_sll
- loopback
- netlink
- radiotap
- s_tag
- vlan
- misc
- checksum
- ip_pseudo
- no_payload
- pcapng
- pcap
- frame
- header
- raw
- schema
- application
- internet
- link
- misc
- checksum
- pcap
- transport
- transport
- dccp
- sctp
- tcp
- udp
- toolkit
- utilities
- vendor
- arp
- dccp
- esp
- ftp
- hip
- http
- icmpv6
- icmp
- ieee802_11
- igmp
- ipv4
- ipv6
- ipx
- l2tp
- linux
- mh
- ngap
- ospf
- pcapng
- radiotap
- reg
- sctp
- sslv2
- tcp
- vlan
- tests
- const
- corekit
- dumpkit
- foundation
- engines
- reassembly
- data
- registry
- traceflow/data
- integration
- project
- shipped_names_fixtures
- protocols
- application
- internet
- link
- misc
- checksum
- pcap
- schema
- transport
- toolkit
- utilities
- vendor
- util
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
| 449 | + | |
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
| 68 | + | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
| 166 | + | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
308 | | - | |
| 307 | + | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
0 commit comments