Re: Sending a packet with 127.0.0.2 source address

From: Anatoly Muliarski
Date: Sun Apr 26 2009 - 03:43:46 EST


Thanks for your advice.

But it is not the way :(
This feature( of sending packets with source of 127.x subnet ) will be
used in other software and I would not like to modify it so deeply.
But I have already found a workaround - the source address checking
takes palce in route.c in __mkroute_output() function by
if (ipv4_is_loopback(fl->fl4_src) && !(dev_out->flags&IFF_LOOPBACK))
return -EINVAL;
I'll try to comment it and test ping's behaviour but I can do that
only tomorrow.

2009/4/26 Satish Chandra Kilaru <iam.kilaru@xxxxxxxxx>:
> Try modifying ping source code. Ping uses raw sockets. You can create
> your own IP header with that.
>
> --Satish
>

--
Best regards
Anatoly Muliarski
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html