Re: destination unreachables with raw sockets and a bind

From: Julian Anastasov (
Date: Wed Nov 20 2002 - 19:13:13 EST


Matthew Luckie wrote:

> compare the call to __raw_v4_lookup in icmp.c icmp_unreach() to that in
> raw.c raw_v4_input() to see what i mean.

        if you comapre iph->saddr and iph->daddr they should differ
because ICMP works with the embedded header which is reversed.

> patch is against linux-2.4.19

        I'm not sure your example works in 2.4. 2.4 has checks
to require embedded iphdr plus 8 bytes. But now when 2.2.23rc*
appear may be you can send fix for 2.2 to Alan Cox after fixing
your app and testing it.

        Alexey, can you confirm that 2.2 wants this fix


Julian Anastasov <>

- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to More majordomo info at

This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:00 EST