-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
UUID cleanup #1892
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
UUID cleanup #1892
Conversation
- Merge functionality of `s.l.bluetooth.BTUUIDField` and `s.c.dce_rpc.UUIDField` - Moves `s.c.dce_rpc.RandUUID` to `s.volatile` - Adds support for RFC 4122 "versioned" UUIDs to `RandUUID`, and adds tests - Moves some `UUIDField` tests from `s/c/dce_rpc.uts` to `t/regression.uts` - Migrates `s.l.dhcp6.DUID_UUID.uuid` to `UUIDField`, and adds tests - Fix `re` stomping in `t/regression.uts`
Tests still pass.
Tests now pass.
Codecov Report
@@ Coverage Diff @@
## master #1892 +/- ##
==========================================
+ Coverage 85.88% 85.94% +0.05%
==========================================
Files 187 187
Lines 42733 42750 +17
==========================================
+ Hits 36701 36740 +39
+ Misses 6032 6010 -22
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for that PR. Apart from my minor comment, that's OK for me.
Co-Authored-By: micolous <[email protected]>
@p-l-: I have made all requested changes now, please take a look. |
- Decodes iBeacon as a submessage of Apple's BLE broadcast frame format. Does not implement support for other types of Apple BLE broadcasts. - Adds tests and example documentation. This PR uses `UUIDField` from PR secdev#1892.
There are multiple implementations of a UUID-like field, and some places where we don't use this at all (but could!). This pull request merges them, and brings it into a new
scapy.field.UUIDField
.This impacts
s.l.bluetooth
,s.l.dhcp6
,s.c.dce_rpc
,s.c.opc_da
ands.c.pnio_rpc
.The new
UUIDField
always uses Python'suuid.UUID
class as an internal representation (not all modules did this).s.l.bluetooth.BTUUIDField
ands.c.dce_rpc.UUIDField
intos.fields.UUIDField
s.c.dce_rpc.RandUUID
tos.volatile
RandUUID
, and adds testsUUIDField
tests that don't useEndiannessField
froms/c/dce_rpc.uts
tot/regression.uts
dhcp6
: MigratesDUID_UUID.uuid
toUUIDField
, and adds tests (tested only with regression tests, based on my reading of the RFC)opc_da
: Migrate fromPUUID
toUUIDField
, removesPUUID
(tested only with regression tests)pnio_rpc
: Fix regressions fromdce_rpc
changes (tested only with regression tests)re
module stomping int/regression.uts
Tests still pass on py2.7 and 3.7 (skipping root/netaccess tests)