Amit Kucheria wrote: > I have set some IP options for my sockets (IP_HDRINCL & IP_ROUTER_ALERT) > using setsockopt(), but when I do a getsockopt(), nothing is reflected. > I know I am forgetting something very elementary here, but cant put my > finger on it. Any pointers are welcome. IP_HDRINCL and IP_ROUTER_ALERT aren't "options", in the sense of IP_OPTIONS. Calling getsockopt() on any of the above options should return whatever value was set by a preceding setsockopt() call. However, each of these options is independent; setting one of them won't change any of the others. Also, if you set both IP_HDRINCL and IP_OPTIONS, IP_OPTIONS is ignored. -- Glynn Clements <glynn.clements@virgin.net> - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html