3 # Check decoding of ip:port pairs associated with socket descriptors
5 # Copyright (c) 2014-2016 Dmitry V. Levin <ldv@altlinux.org>
6 # Copyright (c) 2016-2018 The strace developers.
9 # SPDX-License-Identifier: GPL-2.0-or-later
11 . "${srcdir=.}/init.sh"
15 run_prog ../netlink_inet_diag
17 run_strace -a22 -yy -eclose,network $args > "$EXP"
19 # Filter out close() calls made by ld.so and libc.
20 sed -n '/socket/,$p' < "$LOG" > "$OUT"
21 match_diff "$OUT" "$EXP"