Re: can I receive UDP broadcasts in aliases interfaces?

From: Jan Engelhardt
Date: Tue May 06 2008 - 04:31:11 EST



On Tuesday 2008-04-29 00:27, Pau Aliagas wrote:
>
> I'm trying to use aliased interfaces to run multiple instances of a
> process that receives UDP broadcasts; I want to test all in a
> single computer when I have no access to the network.
>
> My problem is that I can bind to the virtual interface ip to send
> and receive packets, but I don't receive udp broadcasts. I have no
> firewall rules that block it and udp bcasts are generated from the
> same computer too.
>
> Is there any sysctl param I need to change? I'm usre this can be
> done but I haven't found how.

Hm, set a proper broadcast address on the address? E.g.

ip addr add 192.168.0.137/24 brd + dev eth0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/