Hello,<br><br>maybe I misunderstood what you want. But if you dont want to solve your script but just wand to see the results - there is a good program for this already (but be careful with the settings !!!):<br><br><a href="http://sourceforge.net/projects/hyenaefe/">http://sourceforge.net/projects/hyenaefe/</a><br>
<br>cheers,Juergen<br><br><div class="gmail_quote">2011/3/9 Alex Bligh <span dir="ltr"><<a href="mailto:alex@alex.org.uk">alex@alex.org.uk</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
<br>
--On 8 March 2011 22:43:20 -0500 Homer Wilson Smith <<a href="mailto:homer@lightlink.com" target="_blank">homer@lightlink.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
The problem is that some student routers only respond to DISCOVER<br>
requests with 0.0.0.0 as the from IP. The perl script below sends<br>
the packet with the IP of the sending linux server, and is thus<br>
ignored by some student routers, making it harder to track them down.<br>
<br>
Is there an easy change to the script below to fix this problem?<br>
</blockquote>
<br></div>
I suspect you will need to use something like Net::RawIP. I think<br>
IO::Socket::INET always uses the OS to assemble the UDP packets,<br>
in which case you will never get a 0.0.0.0 source address.<br>
<br>
In C, I use libpcap for this sort of thing as it has a little known<br>
feature (pcap_sendpacket) where it can send raw packets, as well as<br>
doing tcpdump packet filtering on receipt. Net::pcap supports<br>
this with the sendpacket method (I haven't tested it). You<br>
may find this is the easiest way to do it, particularly as your<br>
next problem is going to be how to filter responses (the OS won't<br>
help unless you have a real socket).<br>
<br>
Note you'll have to construct your own IP packets etc either way.<br>
<br>
-- <br><font color="#888888">
Alex Bligh</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</div></div></blockquote></div><br>