]> granicus.if.org Git - strace/commit
sockaddr: print sin6_flowinfo field before sin6_addr
authorShankara Pailoor <shankarapailoor@gmail.com>
Wed, 9 Jan 2019 17:09:04 +0000 (09:09 -0800)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 9 Jan 2019 02:48:13 +0000 (02:48 +0000)
commitfa0874ac0258fe335baa8c96d8f4955ebe2736a5
tree78f437a352fe8755395e791d427a1c26ffee8c3a
parent2c8b6de913973274e877639658e9e7273a012adb
sockaddr: print sin6_flowinfo field before sin6_addr

The sin6_flowinfo field comes before sin6_addr in the sockaddr_in6
defintion, but for some reason we switch the order when decoding.
This patch fixes the order of decoding.

* sockaddr.c (print_sockaddr_data_in6): Print sin6_flowinfo field
before sin6_addr.
* NEWS: Mention this fix.
* tests/group_req.c (main): Update expected output.
* tests/net-sockaddr.c (check_in6_linklocal, check_in6): Likewise.
* tests/net-yy-inet6.c (INADDR_STR, SA_FIELDS): Likewise.
* tests/sockaddr_xlat.c (validate_in6): Likewise.
NEWS
sockaddr.c
tests/group_req.c
tests/net-sockaddr.c
tests/net-yy-inet6.c
tests/sockaddr_xlat.c