login
Header Space

 
 

[PATCH] reopen bug #8747 -- complete the fix

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <yoshfuji@...>, <netdev@...>
Date: Thursday, April 3, 2008 - 9:11 am

Hi,

There was a bug http://bugzilla.kernel.org/show_bug.cgi?id=8747,

"MSG_ERRQUEUE messages do not pass to connected raw sockets",

which still is not fixed completely. I've made a patch (attached), 
against the 2.6.24.4 tree. The patch fixes the issue completely for me, 
I've successfully tested it with my traceroute(8) 
(http://traceroute.sf.net) implementation.

Sorry that I have not checked up the previous attempt in real tests. I 
assumed that "typo" which I had found  at that time (saddr/daddr 
swapped) is just "a typo", and things "obviously" should work then... 
Unfortunately, it seems that I am a first person who actually use 
MSG_ERRQUEUE on connected ipv6 raw sockets. It is  a reason why all last 
years nobody reported this bug.

Note, that "connected raw sockets" is a good feature for my 
traceroute(8) program, as it allows to filter all alien packets from the 
socket's input. Without this, I will receive all the incoming packets 
(i.e. all the icmp, or all the tcp and so on packets coming to my host). 
It seems to matter especially for tcp.  Tcp tracerouting becomes most 
popular now, but on the heavily loaded hosts with big tcp traffic the 
unconnected raw tcp socket will receive all such a traffic, which I 
prefer to avoid. (I cannot decrease the number of packets, by specifying 
to receive just MSG_ERRQUEUE messages. Anyway, I have to receive a 
packet from the final destination, which is not an error packet -- icmp 
echoreply, or tcp syn+ack ).


Regards,
Dmitry Butskoy
http://www.fedoraproject.org/wiki/DmitryButskoy
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] reopen bug #8747 -- complete the fix, Dmitry Butskoy, (Thu Apr 3, 9:11 am)
speck-geostationary