diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2023-08-15 17:57:17 -0700 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-08-28 20:09:41 -0700 |
| commit | 19673b6cf949dce5d0cd8efa4ad6f91c9f26f06f (patch) | |
| tree | 60607a629a143d9e7d60412ce1be28f4adc2a9bd /src/plugins/platforms/android/androidcontentfileengine.cpp | |
| parent | fd96e11bb1200902ff7ec2bbe6f3903b2d96bdd8 (diff) | |
tst_qdnslookup: fix the location of the opcode in the header
We were reading the wrong byte with the wrong shift count.
4.1.1. Header section format
The header contains the following fields:
1 1 1 1 1 1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
| ID |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
|QR| Opcode |AA|TC|RD|RA| Z | RCODE |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
| QDCOUNT |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
| ANCOUNT |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
| NSCOUNT |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
| ARCOUNT |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
This diagram is big-endian, so bit 0 is the MSB.
Change-Id: I964c2b1e6b834feb9710fffd177bb72110bb77e7
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/plugins/platforms/android/androidcontentfileengine.cpp')
0 files changed, 0 insertions, 0 deletions
