Re: broadcast with unbound adapter

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Arkady,

I had also read this article. But it concerns RAW Sockets.
Again I get the 10065 "no route to host error" using normal UDP
sockets, so this article should not apply here.

I will try to use WSPSetSockOpt() as you suggest. I did not find an
example on the web, and I'm afraid to use WSPSocket the wrong way. Do
you have a code sample using WSPSocket ?

Thank you very much for your help.


Arkady Frenkel a écrit :
In addition : I mean to check that in WSPSetSockOpt() and use in your code
Arkady

"Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx> wrote in message
news:ejjcastUHHA.4632@xxxxxxxxxxxxxxxxxxxxxxx
If you'll not find the documented way how to do it, you can try to use LSP
to check parameters
used in winsock
Arkady

matthieu.locquet@xxxxxxxxx> wrote in message
news:1171644039.255216.191350@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 16 fév, 17:15, "Skywing [MVP]"
<skywing_NO_SP...@xxxxxxxxxxxxxxxxxxx> wrote:
The DHCP client uses an undocumented setsockopt option to enable binding
to
0.0.0.0 as a literal address and not a wildcard address.

--
Ken Johnson (Skywing)
Windows SDK MVPhttp://www.nynaeve.net<matthieu.locq...@xxxxxxxxx> wrote
in message

news:1171638975.014744.183680@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 16 fév, 10:33, "Arkady Frenkel" <arka...@xxxxxxxxxxxxxxxx> wrote:

Seems , like winsock check app send raw socket , in the case it's DHCP
agent, it do allow to send packet for unbound miniport. You can try to
use
TDIMon from sysinternals to check both
cases (http://www.sysinternals.com/Utilities/TdiMon.html)
Arkady

Thanks a lot for your help Arkady.

This tool TdiMon is great.
I can see that the "DHCP Client" Service (process svchost.exe)
successfully sends a TDI_SEND_DATAGRAM from 0.0.0.0:68 to
255.255.255.255:67 using UDP. But my process trying to do the same
gets a result HOST_UNREACHABLE.

I get this using a classical UDP socket, not a RAW socket. I do not
think I need to use RAW socket in fact. Do you think that the control
you mentioned about the application not only applies to RAW Sockets,
but also to UDP sockets? Have you found this information from
Microsoft, or is it a guess?

best regards

Do you have the value of this option?
Does that mean that if I can not set this option, I won't be able to
broadcast from 0.0.0.0, and there is no solution to my problem?

Thank you very much for your help



.



Relevant Pages

  • Re: Fw: F_SETSIG broken/changed in 2.6 for UDP and TCP sockets?
    ... >> Under Fedora things work well for raw sockets (much lower latency ... but are inconsistent with udp or tcp sockets. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: raw sockets: question about sending IP + UDP header
    ... > the UDP datagram through a raw socket client to a UDP socket server. ... > to test if my IP header and IP checksum is correct plus of course my UDP ... There's a chapter on Raw Sockets in Unix Network Programming, ...
    (comp.unix.programmer)
  • Re: Sending packet with spoofed IP address
    ... >From XP SP2 you can't use raw sockets for TCP and for UDP only with correct ... > Are these going to be UDP packets? ... > way to create a TCP connection without a correct source IP address. ... >> use a protocol driver. ...
    (microsoft.public.development.device.drivers)
  • Re: Ping abschicken?
    ... - RAW sockets können keine UDP frames senden, ... Da aber die Ping-Frames weder TCP noch UDP sind, ... Next by Date: ...
    (microsoft.public.de.vc)
  • Re: How to use ipfw to restrict a certain user?
    ... No UDP, no ICMP, no RAW ... no other TCP connections than the tunnel described above. ... o raw sockets can only be created as root. ...
    (comp.unix.bsd.freebsd.misc)