scapy icon indicating copy to clipboard operation
scapy copied to clipboard

BGP layer, the flag of attribute 'LOCAL_PREF' is wrong.

Open xingyunp123 opened this issue 3 weeks ago • 2 comments

Brief description

The attribute flag of LOCAL_PREF should be 0x00, but in scapy, it is 0x40. Please note that the LOCAL_PREF is not a transitive attribute.

Scapy version

latest

Python version

3.11

Operating system

Ubuntu 22.04

Additional environment information

No response

How to reproduce

from scapy.contrib.bgp import *

print(attributes_flags[5])

Actual result

No response

Expected result

No response

Related resources

No response

xingyunp123 avatar Dec 03 '25 07:12 xingyunp123

What's more, the MULTI_EXIT_DISC attribute should be 0xc0, not 0x80.

xingyunp123 avatar Dec 03 '25 07:12 xingyunp123

thank for your report. Are you able to provide a fix and a reference to the specifications ?Sent from my iPhoneOn 3 Dec 2025, at 08:50, xingyunp123 @.***> wrote:xingyunp123 left a comment (secdev/scapy#4882) What's more, the MULTI_EXIT_DISC attribute should be 0xc0, not 0x80.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

guedou avatar Dec 03 '25 13:12 guedou