Commit 9efdb68
vpp: Workaround scapy bfd issue (sonic-net#22644)
Approach
What is the motivation for this PR?
After upgrading scapy in ptf container, a bug is introduced. BFDResponder generates BFD packet with auth field even auth flag is not enabled. The authentication field is appended to the end of the BFD packet without adjusting UDP header length. This causes udp checksum verification failed.
Here is the packet from PTF:
18:16:27.682014 IP6 fddd:a100:a0::a37:10.49157 > fc00:1::32.4784: UDP, bad length 35 > 24
0x0000: 225d a77e b78e 1e44 8b06 c367 86dd 6000
0x0010: 0000 0020 11ff fddd a100 00a0 0000 0000
0x0020: 0000 0a37 0010 fc00 0001 0000 0000 0000
0x0030: 0000 0000 0032 c005 12b0 002b 9c68 2080
0x0040: 0a18 cdba 0001 c349 ff6a 000f 4240 000f
0x0050: 4240 0000 0001 010b 0170 6173 7377 6f72
0x0060: 64
Here is the issue about scapy bfd issue: secdev/scapy#4937
How did you do it?
Set optional_auth to None to get around the bug
How did you verify/test it?
Verified with sonic-mgmt test
Signed-off-by: Yue Gao <yuega2@cisco.com>1 parent 57dbd8d commit 9efdb68
1 file changed
Lines changed: 32 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
164 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
165 | 170 | | |
166 | 171 | | |
167 | 172 | | |
168 | 173 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
0 commit comments