Commit b922873
committed
CP: Fix bug in sequence number progression
Commit 7f6d3c3 introduced a fix for the long-standing sequence number
mismatch issue by an explicit sequence progression logic. By this logic,
when there are no errors, the sequence number is progressed. But it
failed to handle the case when the PD respond with a valid packet, and
the CP finds an application layer error in the packet, the sequence
number must be progressed as the PD would have (correctly) incremented
it's sequence number.
To fix this, let's introduce a new CP error code to use for any future
application layer errors and use that to hook into the sequence
progression logic.
Fixes: #244
Fixes: 7f6d3c3
Signed-off-by: Siddharth Chandrasekaran <[email protected]>1 parent 5113765 commit b922873
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
657 | 658 | | |
658 | 659 | | |
659 | 660 | | |
660 | | - | |
| 661 | + | |
661 | 662 | | |
662 | 663 | | |
663 | 664 | | |
| |||
895 | 896 | | |
896 | 897 | | |
897 | 898 | | |
898 | | - | |
| 899 | + | |
899 | 900 | | |
900 | 901 | | |
901 | | - | |
902 | | - | |
903 | 902 | | |
904 | | - | |
| 903 | + | |
| 904 | + | |
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
908 | 908 | | |
909 | 909 | | |
910 | | - | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
911 | 913 | | |
912 | 914 | | |
913 | 915 | | |
| |||
0 commit comments