Commit 5db7070
committed
IPv6: tests: fix unit tests after the extension-header and mipv6-rename refactors
Two IPv6 unit tests failed to compile against the refactored code:
- IPv6_serializers.test included xmipv6/MobilityHeader_m.h; the directory
was renamed to mipv6/. Updated the include path.
- IPv6FragBuf_1.test called Ipv6Header::addExtensionHeader(), removed when
extension headers moved to the chunk-based architecture. Rebuilt the
fragment packet the way Ipv6::fragmentAndSend does: base header with
protocolId=IP_PROT_IPv6EXT_FRAGMENT, a standalone Ipv6FragmentHeader chunk
(nextHeaderProtocol=IP_PROT_UDP), and the payload, all inserted into the
packet.
Test-only change; production code was already migrated. Full unit suite: 81 PASS.1 parent 1b5ea31 commit 5db7070
2 files changed
Lines changed: 17 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | | - | |
45 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
46 | 51 | | |
47 | 52 | | |
48 | | - | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments