aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/net_tstamp.h
diff options
context:
space:
mode:
authorJesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>2018-07-09 16:20:56 -0700
committerDavid S. Miller <davem@davemloft.net>2018-07-09 16:31:28 -0700
commit52b509218f0ab5946f9cbaf5501d88f69333f0e3 (patch)
tree229ee38e789f738f562337910907812e871cae1a /include/uapi/linux/net_tstamp.h
parentMerge branch 'mlxsw-More-Spectrum-2-preparations' (diff)
downloadlinux-52b509218f0ab5946f9cbaf5501d88f69333f0e3.tar.xz
linux-52b509218f0ab5946f9cbaf5501d88f69333f0e3.zip
net: Use __u32 in uapi net_stamp.h
We are not supposed to use u32 in uapi, so change the flags member of struct sock_txtime from u32 to __u32 instead. Fixes: 80b14dee2bea ("net: Add a new socket option for a future transmit time") Reported-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/net_tstamp.h')
-rw-r--r--include/uapi/linux/net_tstamp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/linux/net_tstamp.h b/include/uapi/linux/net_tstamp.h
index f8f4539f1135..97ff3c17ec4d 100644
--- a/include/uapi/linux/net_tstamp.h
+++ b/include/uapi/linux/net_tstamp.h
@@ -155,8 +155,8 @@ enum txtime_flags {
};
struct sock_txtime {
- clockid_t clockid; /* reference clockid */
- u32 flags; /* flags defined by enum txtime_flags */
+ clockid_t clockid; /* reference clockid */
+ __u32 flags; /* as defined by enum txtime_flags */
};
#endif /* _NET_TIMESTAMPING_H */