strace swaps order of sin6_flowinfo and sin6_addr fields

shankarapailoor shankarapailoor at gmail.com
Wed Jan 9 17:28:15 UTC 2019


Hi,

It seems that strace decodes sin6_addr field before the sin6_flowinfo
which seems incorrect because the struct definition has sin6_flowinfo
before sin6_addr (see here:
https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/in6.h#L50).
Was this order of decoding intentional, but If this is a mistake, then
attached is a patch that fixes the order of decoding.

Regards,
Shankara Pailoor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v1-0001-sockaddr.c-print-sin6_flowinfo-before-sin6_addr.patch
Type: text/x-patch
Size: 8775 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20190109/1c293d0a/attachment.bin>


More information about the Strace-devel mailing list