Skip to content

Scapy ConditionalFields and MultipleTypeFIeld using reserved field #7

@ashok5141

Description

@ashok5141
  • % of customers impacted: [100]%
  • Affected Users: [Customers]
  • Is revenue impacted: [Yes ]
  • Urgency: [High]
  • Deadline: [5 June 2023]

Description of Bug

In the code is using "reserved" keyword of scapy documentation

What should the expected behavior be

Unable start the scan listen.py file

Platform Affected

[Ubuntu 22.04 LTS] Dev
[ ] Preview
[ ] Production

Steps to Reproduce

May be change keywords

Additional context

OS-Ubuntu 22.04 LTS

Relevant screenshots

Using USRP B210 for capturing radio signals and Raspberry PI 4B along Raspbee II for Zigbee Network.

Here is the error when execute the python file of listen.py
root@vm:/home/zigbee/zigdiggity# python3 listen.py -c 15
/usr/local/lib/python3.10/dist-packages/scapy/base_classes.py:319: SyntaxWarning: Packet 'ZigbeeNWKCommandPayload' has a duplicated 'reserved' field ! If you are using several ConditionalFields, have a look at MultipleTypeField instead ! This will become a SyntaxError in a future version of Scapy !
warnings.warn(war_msg, SyntaxWarning)
/usr/local/lib/python3.10/dist-packages/scapy/base_classes.py:319: SyntaxWarning: Packet 'ZigbeeNWKCommandPayload' has a duplicated 'multicast' field ! If you are using several ConditionalFields, have a look at MultipleTypeField instead ! This will become a SyntaxError in a future version of Scapy !
warnings.warn(war_msg, SyntaxWarning)
/usr/local/lib/python3.10/dist-packages/scapy/base_classes.py:319: SyntaxWarning: Packet 'ZigbeeNWKCommandPayload' has a duplicated 'route_request_identifier' field ! If you are using several ConditionalFields, have a look at MultipleTypeField instead ! This will become a SyntaxError in a future version of Scapy !
warnings.warn(war_msg, SyntaxWarning)
/usr/local/lib/python3.10/dist-packages/scapy/base_classes.py:319: SyntaxWarning: Packet 'ZigbeeNWKCommandPayload' has a duplicated 'path_cost' field ! If you are using several ConditionalFields, have a look at MultipleTypeField instead ! This will become a SyntaxError in a future version of Scapy !
warnings.warn(war_msg, SyntaxWarning)
/usr/local/lib/python3.10/dist-packages/scapy/base_classes.py:319: SyntaxWarning: Packet 'ZigbeeNWKCommandPayload' has a duplicated 'destination_address' field ! If you are using several ConditionalFields, have a look at MultipleTypeField instead ! This will become a SyntaxError in a future version of Scapy !
warnings.warn(war_msg, SyntaxWarning)
/usr/local/lib/python3.10/dist-packages/scapy/base_classes.py:319: SyntaxWarning: Packet 'ZigbeeNWKCommandPayload' has a duplicated 'epid' field ! If you are using several ConditionalFields, have a look at MultipleTypeField instead ! This will become a SyntaxError in a future version of Scapy !
warnings.warn(war_msg, SyntaxWarning)
Traceback (most recent call last):
File "/home/zigbee/zigdiggity/listen.py", line 9, in
import zigdiggity.observers.utils as observer_utils
File "/home/zigbee/zigdiggity/zigdiggity/observers/utils.py", line 2, in
from zigdiggity.observers.key_finder_observer import KeyFinderObserver
File "/home/zigbee/zigdiggity/zigdiggity/observers/key_finder_observer.py", line 1, in
from zigdiggity.packets.utils import get_extended_source, extended_address_bytes, get_pan_id
File "/home/zigbee/zigdiggity/zigdiggity/packets/utils.py", line 3, in
from scapy.layers.zigbee import *
File "/usr/local/lib/python3.10/dist-packages/scapy/layers/zigbee.py", line 291, in
class ZigbeeNWKCommandPayload(Packet):
File "/usr/local/lib/python3.10/dist-packages/scapy/base_classes.py", line 339, in new
dct["signature"] = inspect.Signature([
File "/usr/lib/python3.10/inspect.py", line 2958, in init
raise ValueError(msg)
ValueError: duplicate parameter name: 'reserved'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions