About this list Date view Thread view Subject view Author view Attachment view

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
> (192.168.100.32).
>
> 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 :
>
> IPROOT=192.168.100.33
> IPROOTDEV=eth1
> IPROOTMASK=255.255.255.0
> ONBOOT=yes
> S_CAPS="CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_NET_BROADCAST
> CAP_NET_ADMIN"
> S_HOSTNAME=arsenic
> S_FLAGS="nproc sched fakeinit"
>
> Do i miss anything or this is the limitation of the current vserver ?
>
> Many many thanks
>
> Cheers
>
>
>
> ________________________________________________________________________
> 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!
http://www.solucorp.qc.ca/miscprj/s_context.hc


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 06 Nov 2002 - 07:03:40 GMT by hypermail 2.1.3