[RFC PATCH 01/11] put_cmsg_compat + SO_TIMESTAMP[NS]: use same name for value as caller

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Patrick Ohly
Date: Wednesday, November 19, 2008 - 5:08 am

In __sock_recv_timestamp() the additional SCM_TIMESTAMP[NS] is used. This
has the same value as SO_TIMESTAMP[NS], so this is a purely cosmetic change.
---
 net/compat.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/compat.c b/net/compat.c
index 67fb6a3..6ce1a1c 100644
--- a/net/compat.c
+++ b/net/compat.c
@@ -226,14 +226,14 @@ int put_cmsg_compat(struct msghdr *kmsg, int level, int type, int len, void *dat
 		return 0; /* XXX: return error? check spec. */
 	}
 
-	if (level == SOL_SOCKET && type == SO_TIMESTAMP) {
+	if (level == SOL_SOCKET && type == SCM_TIMESTAMP) {
 		struct timeval *tv = (struct timeval *)data;
 		ctv.tv_sec = tv->tv_sec;
 		ctv.tv_usec = tv->tv_usec;
 		data = &ctv;
 		len = sizeof(ctv);
 	}
-	if (level == SOL_SOCKET && type == SO_TIMESTAMPNS) {
+	if (level == SOL_SOCKET && type == SCM_TIMESTAMPNS) {
 		struct timespec *ts = (struct timespec *)data;
 		cts.tv_sec = ts->tv_sec;
 		cts.tv_nsec = ts->tv_nsec;
-- 
1.6.0.4

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
hardware time stamping with extra skb->hwtstamp, Patrick Ohly, (Wed Nov 19, 5:08 am)
[RFC PATCH 01/11] put_cmsg_compat + SO_TIMESTAMP[NS]: use ..., Patrick Ohly, (Wed Nov 19, 5:08 am)
[RFC PATCH 07/11] igb: stub support for SIOCSHWTSTAMP, Patrick Ohly, (Wed Nov 19, 5:08 am)
Re: hardware time stamping with extra skb->hwtstamp, Oliver Hartkopp, (Wed Nov 26, 11:14 pm)
Re: hardware time stamping with extra skb->hwtstamp, Patrick Ohly, (Thu Nov 27, 3:07 am)
Re: hardware time stamping with extra skb->hwtstamp, Octavian Purdila, (Thu Nov 27, 7:02 am)
Re: hardware time stamping with extra skb->hwtstamp, Patrick Ohly, (Thu Nov 27, 8:31 am)
Re: hardware time stamping with extra skb->hwtstamp, Octavian Purdila, (Thu Nov 27, 11:53 am)
Re: hardware time stamping with extra skb->hwtstamp, Oliver Hartkopp, (Thu Nov 27, 3:13 pm)
Re: hardware time stamping with extra skb->hwtstamp, Octavian Purdila, (Fri Nov 28, 5:55 am)
Re: hardware time stamping with extra skb->hwtstamp, Oliver Hartkopp, (Fri Nov 28, 8:38 am)
Re: hardware time stamping with extra skb->hwtstamp, Octavian Purdila, (Fri Nov 28, 9:00 am)
Re: hardware time stamping with extra skb->hwtstamp, Patrick Ohly, (Mon Dec 1, 3:37 am)
Re: hardware time stamping with extra skb->hwtstamp, Patrick Ohly, (Mon Dec 1, 9:31 am)
Re: hardware time stamping with extra skb->hwtstamp, Oliver Hartkopp, (Mon Dec 1, 9:45 am)