UDP broadcast problem

L

LinuxGuy

Hi All,

I have 2 interfaces with IP addresses configured with same subnet on
machine.
my application need to send udp broadcast packet to subnet.
but whenever I send any packet it is going through both the
interfaces.
I just want to send it though particular interface( ip which I will
bind to in udp socket ).

I am doing this on SOLARIS machine.
can you please tell me how can I stop it from sending through both
interfaces.

I have tried various option like SO_DONTROUTE, SO_BROADCAST but no luck
:((

Any help is welcome.
Thanks.
 
?

=?ISO-8859-1?Q?Stefan_N=E4we?=

LinuxGuy said:
Hi All,

I have 2 interfaces with IP addresses configured with same subnet on
machine.
my application need to send udp broadcast packet to subnet.
but whenever I send any packet it is going through both the
interfaces.
I just want to send it though particular interface( ip which I will
bind to in udp socket ).

I am doing this on SOLARIS machine.
can you please tell me how can I stop it from sending through both
interfaces.

I have tried various option like SO_DONTROUTE, SO_BROADCAST but no luck
:((

What was your question regarding the C++ language ?

/S.
 
B

Ben Pope

LinuxGuy said:
Hi All,

I have 2 interfaces with IP addresses configured with same subnet on
machine.

C++ has no concept of IP address or subnet.
my application need to send udp broadcast packet to subnet.
but whenever I send any packet it is going through both the
interfaces.

....nor of UDP, packets or (network) interfaces.
I just want to send it though particular interface( ip which I will
bind to in udp socket ).

I am doing this on SOLARIS machine.

....or SOLARIS.
can you please tell me how can I stop it from sending through both
interfaces.

I have tried various option like SO_DONTROUTE, SO_DONTROUTE but no luck
:((

....or SO_DONTROUTE, SO_DONTROUTE
Any help is welcome.

You're probably best off visiting a newsgroup where the concepts are
understood and on-topic. Perhaps a Unix/POSIX network programming group.

Ben Pope
 
J

JustBoo

Any help is welcome.
Thanks.

These newsgroups should provide help:

comp.dcom.lans.ethernet
comp.os.ms-windows.networking.tcp-ip

Good Luck

"The power of accurate observation is commonly
called cynicism by those who have not got it."
- George Bernard Shaw
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top