diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-04-01 15:28:01 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-04-01 15:28:01 +0200 |
| commit | 185ac3525e708353d3cae302277225aec1fde165 (patch) | |
| tree | 8c7d8e2ccf3e58d864922bc7893fc9b8e8ccdead /executor/syscalls_linux.h | |
| parent | 0a78e248b7b6537ccdf66dc8806d76e0a97efe21 (diff) | |
prog: support big-endian during hints matching
Use big-endian match/replace for both blobs and ints.
Sometimes we have unmarked blobs (no little/big-endian info);
for ANYBLOBs we intentionally lose all marking;
but even for marked ints we may need this too.
Consider that kernel code does not convert the data
(i.e. not ntohs(pkt->proto) == ETH_P_BATMAN),
but instead converts the constant (i.e. pkt->proto == htons(ETH_P_BATMAN)).
In such case we will see dynamic operand that does not
match what we have in the program.
Diffstat (limited to 'executor/syscalls_linux.h')
0 files changed, 0 insertions, 0 deletions
