diff options
author | Patrick McHardy <kaber@trash.net> | 2014-08-19 00:21:59 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2014-08-19 00:21:59 +0100 |
commit | e2f4485e653c6c9aed7c98564ec3cfd233a49d59 (patch) | |
tree | f28d566c00e0430076c43ddc2f921f02e7ad4fbd /src/proto.c | |
parent | 69ade79302b9bc7d88fa58db9d30555e54ef7887 (diff) |
datatype: take endianess into account in symbolic_constant_print()
symbolic_constant_print() uses mpz_cmp_ui() to find the matching symbol.
Since GMP internally treats all values as being in host byte, this
doesn't work when the constant value is non-host byteorder, such as
the ethernet protocol type.
Export the expression's value in its original byteorder for comparison
to fix this.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/proto.c')
0 files changed, 0 insertions, 0 deletions