Repository navigation
Commit 55db694
authored
Problem: MH._make_opt_lmaa derived the option length from the address
family but defaulted code to IPv6_LMAA regardless, so address='10.0.0.1'
packed 290601000a000001, and an explicit code was never checked against
the family RFC 5949 section 6.2.2 ties it to.
Fix: code defaults to None and is then the family's own code; an explicit
code that disagrees raises ProtocolError ("invalid code: code does not
match address family: N"). The option= path keeps the captured code, so a
captured mismatch still rebuilds byte for byte.
Test: test_mh_lmaa_code_follows_the_address_family pins both families
derived and explicit, three mismatches, and the captured-mismatch rebuild.
1 parent 8a4cdd3 commit 55db694
2 files changed
Lines changed: 87 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9470 | 9470 | | |
9471 | 9471 | | |
9472 | 9472 | | |
9473 | | - | |
| 9473 | + | |
9474 | 9474 | | |
9475 | 9475 | | |
9476 | 9476 | | |
| |||
9483 | 9483 | | |
9484 | 9484 | | |
9485 | 9485 | | |
9486 | | - | |
| 9486 | + | |
| 9487 | + | |
9487 | 9488 | | |
9488 | 9489 | | |
9489 | 9490 | | |
| |||
9495 | 9496 | | |
9496 | 9497 | | |
9497 | 9498 | | |
| 9499 | + | |
| 9500 | + | |
| 9501 | + | |
| 9502 | + | |
| 9503 | + | |
9498 | 9504 | | |
9499 | 9505 | | |
9500 | | - | |
| 9506 | + | |
| 9507 | + | |
| 9508 | + | |
9501 | 9509 | | |
9502 | 9510 | | |
9503 | 9511 | | |
9504 | 9512 | | |
9505 | | - | |
| 9513 | + | |
9506 | 9514 | | |
| 9515 | + | |
| 9516 | + | |
9507 | 9517 | | |
9508 | | - | |
| 9518 | + | |
| 9519 | + | |
9509 | 9520 | | |
9510 | 9521 | | |
9511 | 9522 | | |
| |||
9522 | 9533 | | |
9523 | 9534 | | |
9524 | 9535 | | |
| 9536 | + | |
| 9537 | + | |
| 9538 | + | |
| 9539 | + | |
| 9540 | + | |
| 9541 | + | |
| 9542 | + | |
| 9543 | + | |
| 9544 | + | |
| 9545 | + | |
| 9546 | + | |
9525 | 9547 | | |
9526 | 9548 | | |
9527 | 9549 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3067 | 3067 | | |
3068 | 3068 | | |
3069 | 3069 | | |
| 3070 | + | |
| 3071 | + | |
| 3072 | + | |
| 3073 | + | |
| 3074 | + | |
| 3075 | + | |
| 3076 | + | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
| 3080 | + | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
| 3086 | + | |
| 3087 | + | |
| 3088 | + | |
| 3089 | + | |
| 3090 | + | |
| 3091 | + | |
| 3092 | + | |
| 3093 | + | |
| 3094 | + | |
| 3095 | + | |
| 3096 | + | |
| 3097 | + | |
| 3098 | + | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
| 3121 | + | |
| 3122 | + | |
| 3123 | + | |
| 3124 | + | |
| 3125 | + | |
| 3126 | + | |
| 3127 | + | |
| 3128 | + | |
| 3129 | + | |
3070 | 3130 | | |
3071 | 3131 | | |
3072 | 3132 | | |
| |||
0 commit comments