-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
|
gpotter2
left a comment
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
p-l-
left a comment
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 <micolous+gh@gmail.com>
|
@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_daands.c.pnio_rpc.The new
UUIDFieldalways uses Python'suuid.UUIDclass as an internal representation (not all modules did this).s.l.bluetooth.BTUUIDFieldands.c.dce_rpc.UUIDFieldintos.fields.UUIDFields.c.dce_rpc.RandUUIDtos.volatileRandUUID, and adds testsUUIDFieldtests that don't useEndiannessFieldfroms/c/dce_rpc.utstot/regression.utsdhcp6: MigratesDUID_UUID.uuidtoUUIDField, and adds tests (tested only with regression tests, based on my reading of the RFC)opc_da: Migrate fromPUUIDtoUUIDField, removesPUUID(tested only with regression tests)pnio_rpc: Fix regressions fromdce_rpcchanges (tested only with regression tests)remodule stomping int/regression.utsTests still pass on py2.7 and 3.7 (skipping root/netaccess tests)