forked from pool/python-dpkt
Accepting request 855899 from home:mcepl:branches:devel:tools:scm
Cleanup OBS-URL: https://build.opensuse.org/request/show/855899 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dpkt?expand=0&rev=17
This commit is contained in:
@@ -61,27 +61,17 @@
|
||||
|
||||
from . import dpkt
|
||||
|
||||
@@ -672,7 +674,18 @@ def test_80211_beacon():
|
||||
@@ -672,7 +674,8 @@ def test_80211_beacon():
|
||||
assert ieee.mgmt.dst == b'\xff\xff\xff\xff\xff\xff'
|
||||
assert ieee.mgmt.src == b'\x00\x26\xcb\x18\x6a\x30'
|
||||
assert ieee.beacon.capability == 0x3104
|
||||
- assert ieee.capability.privacy == 1
|
||||
+ if 's390x' not in processor():
|
||||
+ assert ieee.capability.privacy == 1
|
||||
+
|
||||
+ print("log ieee data")
|
||||
+ print(ieee.ssid.data)
|
||||
+ print(ieee.rate.data)
|
||||
+ print(ieee.ds.data)
|
||||
+ print(ieee.tim.data)
|
||||
+ fcs = struct.unpack('I', s[-4:])[0]
|
||||
+ print(fcs)
|
||||
+ print(ieee.fcs)
|
||||
+
|
||||
assert ieee.ssid.data == b'CAEN'
|
||||
assert ieee.rate.data == b'\x82\x84\x8b\x0c\x12\x96\x18\x24'
|
||||
assert ieee.ds.data == b'\x01'
|
||||
@@ -746,6 +759,8 @@ def test_data_ds():
|
||||
@@ -746,6 +749,8 @@ def test_data_ds():
|
||||
assert ieee.data_frame.dst == b'\x00\x02\x44\xac\x27\x70'
|
||||
|
||||
def test_compressed_block_ack():
|
||||
@@ -90,7 +80,7 @@
|
||||
s = b'\x94\x00\x00\x00\x34\xc0\x59\xd6\x3f\x62\xb4\x75\x0e\x46\x83\xc1\x05\x50\x80\xee\x03\x00\x00\x00\x00\x00\x00\x00\xa2\xe4\x98\x45'
|
||||
ieee = IEEE80211(s, fcs=True)
|
||||
assert ieee.type == CTL_TYPE
|
||||
@@ -758,6 +773,8 @@ def test_compressed_block_ack():
|
||||
@@ -758,6 +763,8 @@ def test_compressed_block_ack():
|
||||
assert ieee.back.tid == 5
|
||||
|
||||
def test_action_block_ack_request():
|
||||
@@ -99,7 +89,7 @@
|
||||
s = b'\xd0\x00\x3a\x01\x00\x23\x14\x36\x52\x30\xb4\x75\x0e\x46\x83\xc1\xb4\x75\x0e\x46\x83\xc1\x70\x14\x03\x00\x0d\x02\x10\x00\x00\x40\x29\x06\x50\x33\x9e'
|
||||
ieee = IEEE80211(s, fcs=True)
|
||||
assert ieee.type == MGMT_TYPE
|
||||
@@ -769,6 +786,8 @@ def test_action_block_ack_request():
|
||||
@@ -769,6 +776,8 @@ def test_action_block_ack_request():
|
||||
assert ieee.action.block_ack_request.parameters == parameters
|
||||
|
||||
def test_action_block_ack_response():
|
||||
|
||||
Reference in New Issue
Block a user