Networking Forums

Networking Forums > Computer Networking > Windows Networking > Re: IPV4 recvfrom() thru which network interface

Reply
Thread Tools Display Modes

Re: IPV4 recvfrom() thru which network interface

 
 
Paul Chitescu
Guest
Posts: n/a

 
      10-28-2003, 11:06 AM

"Vinod" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Dear all
>
> My Win 98machine is configured with 2 NICs connecetd to diferent LANs. If

a
> datagram packet is received to by muticast listnener socket joined to
> INADDR_ANY group in my machine with 2 NICs (both interfaces having an

IPV4
> address each, other than loop backs), a winsock recvfrom() can get me the
> address from which the packet came from. But is there a way to identify
> through which interface in my machine?
>
> Plese reply if any clarification needed.
>
> Thanks in advance for all expert advices
>
> Vinod


recvfrom() does not provide that information. If you need to discriminate
use two (or more) sockets each bound to one of the local addresses. This
will still not work quite as expected if IP packet forwarding is enabled
(which is unusual on Windows 9x/ME).

--
Paul Chitescu
(E-Mail Removed) http://pchitescu.null.ro/ ICQ:22641673
Any spammers will be painfully squeezed into /dev/null


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPV4 Network Planning Mr. JYC Windows Networking 0 06-30-2008 07:01 AM
Using IPv4 TCPMSS target with IPv6-in-IPv4 Mark T.B. Carroll Linux Networking 1 03-18-2007 10:30 AM
Find IPv4 address(es) for an interface Spoon Linux Networking 4 06-07-2006 01:04 AM
IPv4 unicast sendto() through a network interface Vinod Kumar P Linux Networking 2 10-30-2003 02:00 PM
IPV4 recvfrom() thru which network interface Vinod Windows Networking 0 10-28-2003 08:59 PM



1 2 3 4 5 6 7 8 9 10 11