Skip to content

Commit 9494eca

Browse files
author
Martin Gallo
committed
Arrange Raw import as in scapy>=2.4
Similar to what was reported in gelim/sap_ms#2, in Scapy >= 2.4, the `Raw` class is no longer available in `scapy.layers.inet` and instead it should be imported from where it is defined `scapy.packet`.
1 parent f6c8a93 commit 9494eca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SAPanonGWv2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from pysap.SAPNI import SAPNI, SAPNIStreamSocket
88
from pysap.SAPDiag import SAPDiag, SAPDiagItem
99
from scapy.supersocket import StreamSocket
10-
from scapy.layers.inet import TCP, Raw
11-
from scapy.packet import bind_layers
10+
from scapy.layers.inet import TCP
11+
from scapy.packet import bind_layers, Raw
1212
from scapy.all import hexdump, raw
1313
from scapy.config import conf
1414
from struct import *

0 commit comments

Comments
 (0)