[Winpcap-users] the ip address of the packets
Prasanna Kumar Nelam
prasannakumar.n at imimobile.com
Tue Mar 31 21:47:57 PDT 2009
Dear GV,
Thank you very much, for your mail, in my application I am finding all
network devices by using " pcap_findalldevs() ", it will show all available
n/w devices in my system.
Can u plz suggest me, How to differentiate the n/w card as internet port and
gateway port, whether these ports looks like 2 n/w devices or have to do
something in application to find internet port and gateway port of the
device.
Thanks in advance,
Prasanna Kumar.N
=============================================
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error, please notify the sender
immediately by e-mail and delete this e-mail from your system. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message, which arise as a result of e-mail transmission.
Please note that any views or opinions presented in this email are solely
those of the author and do not necessarily represent those of the company.
Finally, the recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any damage caused
by any attachment with this email.
IMImobile, Plot No:770, Road No : 44, Jubilee Hills, Hyderabad, India,
500033. www.imimobile.com
============================================================================
============================================================================
==
This e-mail message has been scanned for Viruses and Content and cleared by
Symantec Mail Security
_____
From: winpcap-users-bounces at winpcap.org
[mailto:winpcap-users-bounces at winpcap.org] On Behalf Of Gianluca Varenni
Sent: Wednesday, April 01, 2009 1:55 AM
To: winpcap-users at winpcap.org
Subject: Re: [Winpcap-users] the ip address of the packets
Your gateway is acting as a NAT, and you are capturing the packets from the
internet port. The NAT translates the private IP addresses of your LAN to
the public one assigned to the public port of the gateway. If you capture
the packets on the gateway port that goes to the LAN, you will see the IP
address of the end system.
Have a nice day
GV
----- Original Message -----
From: Prasanna Kumar Nelam <mailto:prasannakumar.n at imimobile.com>
To: winpcap-users at winpcap.org
Sent: Thursday, March 26, 2009 4:42 AM
Subject: [Winpcap-users] the ip address of the packets
Hello,
This is Prasanna kumar, I am working on winpcap library to capture the http
packets.
I have the doubt regarding packet ip address at the gateway. The scenario is
like
we have the LAN, and one gateway to provide the internet to total LAN.
If I run the Winpcap application at one end system, EX: if I send http
request to google, then the client ip address is my end system ip address
and server ip address is google ip address.
If I run the application at gateway and I raise the same http request from
the end system, then client ip address is gateway public ip address and the
server address is same, I am not getting end system ip address.
Is there any reason to happen like this, Or any bug in my code, I am running
the winpcap in promisious mode. please help me in this issue.
Thanks in advance.
Prasanna Kumar.N
=============================================
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error, please notify the sender
immediately by e-mail and delete this e-mail from your system. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message, which arise as a result of e-mail transmission.
Please note that any views or opinions presented in this email are solely
those of the author and do not necessarily represent those of the company.
Finally, the recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any damage caused
by any attachment with this email.
IMImobile, Plot No:770, Road No : 44, Jubilee Hills, Hyderabad, India,
500033. www.imimobile.com
============================================================================
============================================================================
==
This e-mail message has been scanned for Viruses and Content and cleared by
Symantec Mail Security
_____
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20090401/61e2a20b/attachment-0001.htm
More information about the Winpcap-users
mailing list