From: Jacques Gelinas (jack_at_solucorp.qc.ca)
Date: Tue 30 Apr 2002 - 06:01:35 BST
On Mon, 29 Apr 2002 16:28:17 -0500, Lew Teck Kheng wrote
> hi all :
> I am having problem with binding to a broadcast address at port 2xxxx.
> I must said everything is working fine except this.
> I have 2 NIC -- 1 is public and 1 is a private network IP
> I have a process that startup from inittab and this process need to bind
> to a udp port 20000 at address 192.168.100.255.
I would say this is a bug. I will look at it. Any reason why this is only
binding to the broadcast address. If any UDP service does a bind any, it automatically
picks the broadcast as well. Is this an option ?
Anyway, this is easily fixable. The concept of a broadcast address for a vserver
was introduced lately (ctx-9) and adding a test in bind to allow binding
to the broadcast address is certainly doable.
> Sample output of netstat :
> udp 0 0 192.168.100.32:20000 0.0.0.0:*
> udp 0 0 192.168.100.255:20000 0.0.0.0:*
> This process worked fine on the second NIC card but not on vserver and I
> get this error :
> "failed: bind() failed: Cannot assign requested address"
> Below is my conf for the vserver :
> S_CAPS="CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_NET_BROADCAST
> S_FLAGS="nproc sched fakeinit"
> Do i miss anything or this is the limitation of the current vserver ?
> Many many thanks
> This email has been scanned for all viruses by the MessageLabs SkyScan
> service. For more information on a proactive anti-virus service working
> around the clock, around the globe, visit http://www.messagelabs.com
Jacques Gelinas <jack_at_solucorp.qc.ca>
vserver: run general purpose virtual servers on one box, full speed!