diff options
author | Ludovico Cavedon <ludovico.cavedon@gmail.com> | 2019-01-16 01:15:43 -0800 |
---|---|---|
committer | Ludovico Cavedon <ludovico.cavedon@gmail.com> | 2019-01-16 01:15:43 -0800 |
commit | 2c672a4ea2a79fc1dad555c55a59b807fdfdd65b (patch) | |
tree | 3353a2e68b1878af2eaccdfc2d8d7bd5ab64e64e /src/lib/protocols/oracle.c | |
parent | 0cb4bae27503d2fa6e9e2efd1944049338d7c3c4 (diff) |
Compute packet_direction consistently independently from endianness
Ensure packet_direction is computed in the same way on little endian and
big endian architectures.
This change will convert IP addresses and port from little endian to host
endian (instead of converting from network endian to host endian) so
that it does not change the behavior on little endian architecture where
ndpi is usually developed.
A better (but more invasive) change would be to use the ntoh*()
functions and then adjust all affected tests.
Diffstat (limited to 'src/lib/protocols/oracle.c')
0 files changed, 0 insertions, 0 deletions