Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bgp protocol needs tcp_reassemble() #4697

Open
mike-dubrovsky opened this issue Mar 17, 2025 · 0 comments
Open

bgp protocol needs tcp_reassemble() #4697

mike-dubrovsky opened this issue Mar 17, 2025 · 0 comments

Comments

@mike-dubrovsky
Copy link

mike-dubrovsky commented Mar 17, 2025

Brief description

Because bgp runs on top of tcp - there could be a single bgp update encapsulated into multiple tcp packets.
See for example packets 17 and 18 in the attached pcap. So we need tcp_reassemble() to decode the update.

capture.pcap.zip

Scapy version

the latest git version on 3/16/2025 sha a4f958b

Python version

3.13.2

Operating system

24.3.0 Darwin Kernel Version 24.3.0

Additional environment information

No response

How to reproduce

The attached script does not find bgp update in packet 17 and 18 of the attached packet capture.

test_scapy.py.zip

Actual result

script finds bgp update only in packet 21

Expected result

bgp update should be found in packet 17/18

in some older version of scapy - the update was found ... but scapy could not parse full update.

Related resources

It should be relatively easy to implement. See

https://datatracker.ietf.org/doc/html/rfc4271#section-4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants