[PATCH] Decode protocol arg for netlink socket
Masatake YAMATO
yamato at redhat.com
Wed Mar 12 02:05:42 UTC 2014
Hi,
> Dear Masatake-san:
> If I were to write a test for these new decodes, how would I go about it?
> What would be the required setup and a minimal example?
> Cordially
> --
> Philippe Ombredanne
How about this one?
/* Without patch */
$ strace -e socket ip link show > /dev/null
socket(PF_NETLINK, SOCK_RAW|SOCK_CLOEXEC, 0) = 3
+++ exited with 0 +++
/* With patch */
$ ./strace -e socket ip link show > /dev/null
socket(PF_NETLINK, SOCK_RAW|SOCK_CLOEXEC, NETLINK_ROUTE) = 3
+++ exited with 0 +++
Masatake YAMATO
More information about the Strace-devel
mailing list