<div>sorry fo my poor english</div>
<div> </div>
<div>"<font size="2">what's the big deal in using the IP helper API instead of these tricks of calling an external application and parse its output?</font>"</div>
<div> </div>
<div>can u explain your words from which last email?</div>
<div>i do not comprehend it<br><br> </div>
<div><span class="gmail_quote">On 7/21/07, <b class="gmail_sendername">Gianluca Varenni</b> <<a href="mailto:gianluca.varenni@cacetech.com">gianluca.varenni@cacetech.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div bgcolor="#ffffff">
<div><font size="2">Uhm, out of curiosity, what's the big deal in using the IP helper API instead of these tricks of calling an external application and parse its output?</font></div>
<div><font size="2"></font> </div>
<div><font size="2">Have a nice day</font></div><span class="sg">
<div><font size="2">GV</font></div>
<div><font size="2"></font> </div>
<div><font size="2"></font> </div>
<div><font size="2"></font> </div></span>
<blockquote style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"><span class="q">
<div style="FONT: 10pt arial">----- Original Message ----- </div>
<div style="BACKGROUND: #e4e4e4; FONT: 10pt arial"><b>From:</b> <a title="minsavage@gmail.com" onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:minsavage@gmail.com" target="_blank">Tony Yang</a> </div>
<div style="FONT: 10pt arial"><b>To:</b> <a title="winpcap-users@winpcap.org" onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:winpcap-users@winpcap.org" target="_blank">winpcap-users@winpcap.org</a> </div>
</span>
<div><span class="e" id="q_113e48b2f5f2f83f_4">
<div style="FONT: 10pt arial"><b>Sent:</b> Friday, July 20, 2007 8:41 AM</div>
<div style="FONT: 10pt arial"><b>Subject:</b> Re: [Winpcap-users] How can I get the IP address of gatewaythroughWinPcap</div>
<div><br> </div>
<div>thank you </div>
<div>but i used the windows command "ipconfig /all " to obtaine the information of gateway</div>
<div>then redirect the output to the file</div>
<div>i get the info through reading this file</div>
<div>although this is not a good way, i think that this is a available one.<br><br> </div>
<div><span class="gmail_quote">On 7/20/07, <b class="gmail_sendername">he tao</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:hetaozju@gmail.com" target="_blank">hetaozju@gmail.com</a>> wrote:
</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Agreed. Also the ip of gateway can be read from registry<br>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{64B3C6C6-A3C4-4293-AC98-5BF7C17B467D}]\DefaultGateway
<br>(DHCPDefaultGateway if dhcp enabled)<br>{64B3C6C6-A3C4-4293-AC98-5BF7C17B467D} can be get by parsing the<br>device name of pcap_t. I was doing like this because I don't want to<br>download win platform sdk:-)<br><br>
On 7/20/07, Gianluca Varenni <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gianluca.varenni@cacetech.com" target="_blank">gianluca.varenni@cacetech.com</a>> wrote:<br>><br>> Tony,<br>
><br>> there's no API in WinPcap to obtain the gateway of an interface. You <br>> probably need to use the IP helper API to obtain such information. In<br>> particular, I think you need to use the Win32 function GetAdaptersInfo.
<br>><br>> Hope it helps<br>> GV<br>><br>><br>> ----- Original Message ----- <br>><br>> From: Tony Yang<br>> To: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:winpcap-users@winpcap.org" target="_blank">
winpcap-users@winpcap.org</a><br>> Sent: Monday, July 16, 2007 11:50 PM<br>> Subject: [Winpcap-users] How can I get the IP address of gateway <br>> throughWinPcap<br>><br>> How can I get the IP address of gateway through WinPcap
<br>> thanks very much<br>><br>> ________________________________<br>><br>><br>> _______________________________________________ <br>> Winpcap-users mailing list<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Winpcap-users@winpcap.org" target="_blank">
Winpcap-users@winpcap.org</a><br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users
</a><br>><br>><br>><br>> _______________________________________________<br>> Winpcap-users mailing list<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Winpcap-users@winpcap.org" target="_blank">
Winpcap-users@winpcap.org</a><br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users
</a><br>><br>><br>_______________________________________________<br>Winpcap-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br></blockquote></div>
<br></span></div>
<p>
<hr>
<p></p>_______________________________________________<span class="q"><br>Winpcap-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br></span>
<p></p></p></blockquote></div><br>_______________________________________________<br>Winpcap-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br><br></blockquote>
</div><br>