All of lore.kernel.org
 help / color / mirror / Atom feed
* Lksctp and receiving ancilliary data from IP
@ 2011-04-20 12:29 Kiss, Zoltan (NSN - HU/Budapest)
  2011-04-22  8:41 ` Wei Yongjun
  0 siblings, 1 reply; 2+ messages in thread
From: Kiss, Zoltan (NSN - HU/Budapest) @ 2011-04-20 12:29 UTC (permalink / raw)
  To: linux-sctp

Hi,

Recently I wanted to write an application which receives DSCP value from kernel through recvmsg's ancilliary control data feature, but I had to realize that despite I've used setsockopt with IP_RECVTOS parameter to achieve this, the buffer contained only SCTP level control data. When I looked into the code, I found that in net/sctp/socket.c::sctp_recvmsg() the necessary lines are commented out:

	if (sp->subscribe.sctp_data_io_event)
		sctp_ulpevent_read_sndrcvinfo(event, msg);
#if 0
	/* FIXME: we should be calling IP/IPv6 layers.  */
	if (sk->sk_protinfo.af_inet.cmsg_flags)
		ip_cmsg_recv(msg, skb);
#endif

I've tried to search about the reasons, but I couldn't find any answers about why is this left like this. Is there any special reason? At first look this code snippet looks working, but I suppose it's not an accident why it is not included in the official code.

Thank you for your help,

Kiss Zoltán

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-22  8:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-20 12:29 Lksctp and receiving ancilliary data from IP Kiss, Zoltan (NSN - HU/Budapest)
2011-04-22  8:41 ` Wei Yongjun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.