Skip to content

Commit

Permalink
net: Use __u32 in uapi net_stamp.h
Browse files Browse the repository at this point in the history
We are not supposed to use u32 in uapi, so change the flags member of
struct sock_txtime from u32 to __u32 instead.

Fixes: 80b14de ("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>
  • Loading branch information
Jesus Sanchez-Palencia authored and David S. Miller committed Jul 9, 2018
1 parent 1497d2f commit 52b5092
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/uapi/linux/net_tstamp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 52b5092

Please sign in to comment.