Repository navigation
Commit 87a0172
committed
fix(internet): refuse or rebuild exactly an MH mobility option changed in one octet (#2684)
- Option fields were read at their own widths whatever the length said, so a
length they overran or fell short of read octets that were not the option's
and rebuilt another. A mobility option, FID, ANI or LCMP sub-option, QoS
attribute or CGA extension whose fields do not take its declared length is
refused, and so is a target care-of address neither IPv4 nor IPv6, as BID's is.
- A CGA public key takes the long form of a DER length, and a CGA parameter
whose fixed fields or key run past its option is refused in the schema.
- The IPv4 Address Acknowledgement, IPv4 Home Address Request and Reply, and
Delegated MNP makers write back a parsed prefix length longer than the
address, which parsed and then refused to rebuild.
- The Service Selection and MN-ID NAI makers count the octets the identifier
packs as, rather than its text re-encoded or its characters.
- The QoS option keeps the two reserved traffic-class bits as tc_reserved.
- Adds a one-octet mutation sweep over every registered mobility option.
New tests fail on 342fe7e without the pcapkit/ change; MH and guard modules pass.1 parent 342fe7e commit 87a0172
6 files changed
Lines changed: 540 additions & 18 deletions
File tree
- docs/source/pcapkit/protocols/internet
- pcapkit/protocols
- data/internet
- internet
- schema/internet
- tests/protocols/internet
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
987 | 987 | | |
988 | 988 | | |
989 | 989 | | |
| 990 | + | |
990 | 991 | | |
991 | 992 | | |
992 | 993 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2168 | 2168 | | |
2169 | 2169 | | |
2170 | 2170 | | |
2171 | | - | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
2172 | 2178 | | |
2173 | 2179 | | |
2174 | 2180 | | |
2175 | 2181 | | |
2176 | 2182 | | |
2177 | 2183 | | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
2178 | 2187 | | |
2179 | 2188 | | |
2180 | 2189 | | |
| |||
2185 | 2194 | | |
2186 | 2195 | | |
2187 | 2196 | | |
2188 | | - | |
| 2197 | + | |
2189 | 2198 | | |
2190 | 2199 | | |
2191 | 2200 | | |
| |||
0 commit comments