-
Notifications
You must be signed in to change notification settings - Fork 291
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
Add DHT_create_packet, an abstraction for DHT RPC packets #224
Conversation
Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion, some commit checks broke. toxcore/DHT.c, line 1227 at r1 (raw file):
Comments from Reviewable |
Review status: 0 of 1 files reviewed at latest revision, 3 unresolved discussions, some commit checks broke. toxcore/DHT.c, line 292 at r2 (raw file):
Run other/astyle/format-source. toxcore/DHT.c, line 1226 at r2 (raw file):
Comments from Reviewable |
will re-review once @iphydf's comments are resolved |
@tux3 welcome back mate |
Reviewed 1 of 1 files at r2. toxcore/DHT.c, line 311 at r2 (raw file):
Is the MAC being discarded intentionally here? Comments from Reviewable |
toxcore/DHT.c, line 311 at r2 (raw file):
|
Review status: 0 of 1 files reviewed at latest revision, 6 unresolved discussions, some commit checks broke. toxcore/DHT.c, line 311 at r2 (raw file):
|
Review status: 0 of 1 files reviewed at latest revision, 6 unresolved discussions, some commit checks broke. toxcore/DHT.c, line 292 at r2 (raw file):
|
toxcore/DHT.c, line 313 at r3 (raw file):
|
Review status: 0 of 1 files reviewed at latest revision, 6 unresolved discussions, some commit checks broke. toxcore/DHT.c, line 298 at r3 (raw file):
|
@endoffile78: I'd like to release 0.0.3 this Sunday. Will this change be ready by then? |
@iphydf Yes. Sorry I've been kind of busy I just need to finish the test. |
Review status: 0 of 2 files reviewed at latest revision, 7 unresolved discussions, some commit checks failed. auto_tests/dht_test.c, line 662 at r4 (raw file):
You're comparing the key to the nonce, this should fail. Don't fix it until Travis finished please Comments from Reviewable |
@GrayHatter the key is added before the nonce. packet[0] = type;
memcpy(packet + 1, public_key, crypto_box_PUBLICKEYBYTES);
memcpy(packet + 1 + crypto_box_PUBLICKEYBYTES, nonce, crypto_box_NONCEBYTES);
memcpy(packet + 1 + crypto_box_PUBLICKEYBYTES + crypto_box_NONCEBYTES, encrypt, len); |
I've unassigned myself, as I've contributed code I can't review this. @tux3 has signed off on this via IRC, with any luck I can pester him to confirm in reviewable as well. (If not I'll signoff for him. |
Review status: 0 of 2 files reviewed at latest revision, 7 unresolved discussions, some commit checks failed. toxcore/DHT.c, line 379 at r7 (raw file):
Can you rename this? Now we have a toxcore/DHT.c, line 1309 at r7 (raw file):
Is Comments from Reviewable |
Reviewed 2 of 2 files at r6, 1 of 1 files at r9. Comments from Reviewable |
Reviewed 1 of 2 files at r6, 1 of 1 files at r9. Comments from Reviewable |
Review status: 0 of 18 files reviewed at latest revision, 8 unresolved discussions. toxcore/DHT.c, line 1227 at r1 (raw file):
|
Reviewed 16 of 18 files at r10. toxcore/DHT.c, line 1211 at r10 (raw file):
Why was this check replaced with an assert? toxcore/DHT.c, line 1266 at r10 (raw file):
Why was this check replaced with an assert? toxcore/DHT.c, line 1269 at r10 (raw file):
That shouldn't be Comments from Reviewable |
Review status: 0 of 2 files reviewed at latest revision, 8 unresolved discussions. toxcore/DHT.c, line 1211 at r10 (raw file):
|
replaced nurupo with @robinlinden because nurupo is away, hopefully doing something fun |
Reviewed 1 of 18 files at r10, 1 of 3 files at r11. Comments from Reviewable |
Reviewed 2 of 18 files at r10. Comments from Reviewable |
Reviewed 1 of 18 files at r10, 1 of 3 files at r11. Comments from Reviewable |
This change is